Public Member Functions | |
| Controller () | |
| Creates a new instance. | |
Private Member Functions | |
| void | notifyIcon_Popup (object sender, EventArgs e) |
| Event handler for opening the context menu. | |
| void | menuItemExit_Click (object sender, EventArgs e) |
| Event handler for the Exit MenuItem. | |
| void | menuItemInfo_Click (object sender, EventArgs e) |
| Event handler for the Info MenuItem. | |
| void | menuItemHelp_Click (object sender, EventArgs e) |
| Event handler for the Help MenuItem. | |
| void | menuItemSettings_Click (object sender, EventArgs e) |
| Event handler for the Settings MenuItem. | |
| ServiceController | findServiceController (ServiceController[] services, String serviceName) |
| Finds the appropriate ServiceController for serviceName in services. | |
Private Attributes | |
| ResourceManager | messages = null |
| A private System.Resources.ResourceManager for handling the internationalization. | |
| NotifyIcon | notifyicon |
| The trayBar icon. | |
| ContextMenu | menu |
| The context menu show for Controller.notifyicon. | |
| ArrayList | controlledServices |
| The list of the services to be shown in the Controller.menu. | |
| Administrator | administrator |
| The Administrator object, used for Impersonation. | |
Static Private Attributes | |
| static readonly ILog | log = LogManager.GetLogger(typeof(Controller)) |
| A static logger. | |
| ServicesCtl.Controller.Controller | ( | ) |
Creates a new instance.
Initializes the ResourceManager Controller.messages, the Administrator object Controller.administrator and adds an empty context menu to the Controller.notifyicon.
| void ServicesCtl.Controller.notifyIcon_Popup | ( | object | sender, | |
| EventArgs | e | |||
| ) | [private] |
Event handler for opening the context menu.
| sender | sender | |
| e | EventArgs |
| void ServicesCtl.Controller.menuItemExit_Click | ( | object | sender, | |
| EventArgs | e | |||
| ) | [private] |
Event handler for the Exit MenuItem.
| sender | ||
| e |
| void ServicesCtl.Controller.menuItemInfo_Click | ( | object | sender, | |
| EventArgs | e | |||
| ) | [private] |
| void ServicesCtl.Controller.menuItemHelp_Click | ( | object | sender, | |
| EventArgs | e | |||
| ) | [private] |
Event handler for the Help MenuItem.
| sender | ||
| e |
| void ServicesCtl.Controller.menuItemSettings_Click | ( | object | sender, | |
| EventArgs | e | |||
| ) | [private] |
Event handler for the Settings MenuItem.
| sender | ||
| e |
| ServiceController ServicesCtl.Controller.findServiceController | ( | ServiceController[] | services, | |
| String | serviceName | |||
| ) | [private] |
Finds the appropriate ServiceController for serviceName in services.
| services | The array of ServicesController to search | |
| serviceName | The name of the service to search for |
readonly ILog ServicesCtl.Controller.log = LogManager.GetLogger(typeof(Controller)) [static, private] |
A static logger.
ResourceManager ServicesCtl.Controller.messages = null [private] |
A private System.Resources.ResourceManager for handling the internationalization.
NotifyIcon ServicesCtl.Controller.notifyicon [private] |
The trayBar icon.
ContextMenu ServicesCtl.Controller.menu [private] |
The context menu show for Controller.notifyicon.
ArrayList ServicesCtl.Controller.controlledServices [private] |
The list of the services to be shown in the Controller.menu.
The Administrator object, used for Impersonation.
1.5.2