ServicesCtl.Controller Class Reference

This class controls the applications UI. More...

List of all members.

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.


Detailed Description

This class controls the applications UI.


Constructor & Destructor Documentation

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.


Member Function Documentation

void ServicesCtl.Controller.notifyIcon_Popup ( object  sender,
EventArgs  e 
) [private]

Event handler for opening the context menu.

Parameters:
sender sender
e EventArgs
This method renews the content of the context menu each time it is executed.

void ServicesCtl.Controller.menuItemExit_Click ( object  sender,
EventArgs  e 
) [private]

Event handler for the Exit MenuItem.

Parameters:
sender 
e 

void ServicesCtl.Controller.menuItemInfo_Click ( object  sender,
EventArgs  e 
) [private]

Event handler for the Info MenuItem.

Parameters:
sender 
e 
Opens the AboutBox1

void ServicesCtl.Controller.menuItemHelp_Click ( object  sender,
EventArgs  e 
) [private]

Event handler for the Help MenuItem.

Parameters:
sender 
e 

void ServicesCtl.Controller.menuItemSettings_Click ( object  sender,
EventArgs  e 
) [private]

Event handler for the Settings MenuItem.

Parameters:
sender 
e 
Opens the ServicesSettingsForm and saves the result of the ServicesSettingsForm.

ServiceController ServicesCtl.Controller.findServiceController ( ServiceController[]  services,
String  serviceName 
) [private]

Finds the appropriate ServiceController for serviceName in services.

Parameters:
services The array of ServicesController to search
serviceName The name of the service to search for
Returns:
The ServiceController with the name serviceName or null


Member Data Documentation

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.

Administrator ServicesCtl.Controller.administrator [private]

The Administrator object, used for Impersonation.


The documentation for this class was generated from the following file:
Generated on Tue May 1 16:31:06 2007 for ServiceCtl by  doxygen 1.5.2