C# Class IconSystray.NotifyIconSystray

Handles the systray icon
Datei anzeigen Open project: Zougi/LyncLogger

Public Properties

Property Type Description
ChangeStatus Status

Public Methods

Method Description
Status_DelegateMethod ( bool status ) : void

This method allows to change the state of icon and tooltip true = Log Active: the logger detected the client and is active.

addNotifyIcon ( String name, MenuItem items = null ) : void

add notification icon to system tray bar (near the clock) quit option is available by default

disposeNotifyIcon ( ) : void
setNotifyIcon ( string iconName, string text ) : void

set text and icon for the taskbar Icon must be in the project as embedded resource

setOffIcon ( string text, string imageName ) : void
setOnIcon ( string text, string imageName ) : void

Method Details

Status_DelegateMethod() public static method

This method allows to change the state of icon and tooltip true = Log Active: the logger detected the client and is active.
public static Status_DelegateMethod ( bool status ) : void
status bool
return void

addNotifyIcon() public static method

add notification icon to system tray bar (near the clock) quit option is available by default
public static addNotifyIcon ( String name, MenuItem items = null ) : void
name String name displayed on mouse hover
items System.Windows.Forms.MenuItem items to add to the context menu
return void

disposeNotifyIcon() public static method

public static disposeNotifyIcon ( ) : void
return void

setNotifyIcon() public static method

set text and icon for the taskbar Icon must be in the project as embedded resource
public static setNotifyIcon ( string iconName, string text ) : void
iconName string
text string
return void

setOffIcon() public static method

public static setOffIcon ( string text, string imageName ) : void
text string
imageName string
return void

setOnIcon() public static method

public static setOnIcon ( string text, string imageName ) : void
text string
imageName string
return void

Property Details

ChangeStatus public_oe static_oe property

This delegate allows us to call Status_DelegateMethod in the backgroundworker It changes the indicator that displays the state of the app.
public static Status ChangeStatus
return Status