ServicesCtl.ServicesSettingsForm Class Reference

This Form offers the possibility to select services out of all available services. More...

List of all members.

Public Member Functions

 ServicesSettingsForm ()
 Creates a new instance.

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.

Properties

ServiceController[] AvailableServices [get, set]
 An array of all local available services.
ArrayList SelectedServices [get, set]
 An Array of the selected Services.
bool Canceled [get]
 A flag that is set to true when the dialog has been closed by the cancel button.

Private Member Functions

void buttonOk_Click (object sender, EventArgs e)
 Event handler for the ok button.
void buttonCancel_Click (object sender, EventArgs e)
 event handler for the cancel button
void buttonAdd_Click (object sender, EventArgs e)
 Event handler for the add service button.
void buttonRemove_Click (object sender, EventArgs e)
 Event handler for the remove service button.
void OnLoad (object sender, EventArgs e)
 Event handler for the load event.
void buttonAdd_DblClick (object sender, MouseEventArgs e)
 Event handler for the double click in the listbox of available services.
void buttonRemove_DblClick (object sender, MouseEventArgs e)
 Event handler for the double click in the listbox of selected services.
void addToSelectedServices ()
 Adds the selected service in the listbox of available services to the listbox of controlled services.
void removeFromSelectedServices ()
 Removes the selected service in the listbox of controlled services from the listbox and add it to the listbox of available services.
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor.

Private Attributes

ServiceController[] availableServices = new ServiceController[0]
 An Array of all local services.
ArrayList selectedServices = new ArrayList()
 An array of the selected services. This array is just populated upon clicking the ok button.
bool canceled = false
 A flag that the cancel button has been clicked.
System.ComponentModel.IContainer components = null
 Required designer variable.


Detailed Description

This Form offers the possibility to select services out of all available services.


Constructor & Destructor Documentation

ServicesCtl.ServicesSettingsForm.ServicesSettingsForm (  ) 

Creates a new instance.


Member Function Documentation

void ServicesCtl.ServicesSettingsForm.buttonOk_Click ( object  sender,
EventArgs  e 
) [private]

Event handler for the ok button.

Parameters:
sender 
e 
This method populates the ServicesSettingsForm.selectedServices

void ServicesCtl.ServicesSettingsForm.buttonCancel_Click ( object  sender,
EventArgs  e 
) [private]

event handler for the cancel button

Parameters:
sender 
e 

void ServicesCtl.ServicesSettingsForm.buttonAdd_Click ( object  sender,
EventArgs  e 
) [private]

Event handler for the add service button.

Parameters:
sender 
e 

void ServicesCtl.ServicesSettingsForm.buttonRemove_Click ( object  sender,
EventArgs  e 
) [private]

Event handler for the remove service button.

Parameters:
sender 
e 

void ServicesCtl.ServicesSettingsForm.OnLoad ( object  sender,
EventArgs  e 
) [private]

Event handler for the load event.

Parameters:
sender 
e 
This handler clears the listboxes and refills them. It removes invalid items from the array of selected services

void ServicesCtl.ServicesSettingsForm.buttonAdd_DblClick ( object  sender,
MouseEventArgs  e 
) [private]

Event handler for the double click in the listbox of available services.

Parameters:
sender 
e 

void ServicesCtl.ServicesSettingsForm.buttonRemove_DblClick ( object  sender,
MouseEventArgs  e 
) [private]

Event handler for the double click in the listbox of selected services.

Parameters:
sender 
e 

void ServicesCtl.ServicesSettingsForm.addToSelectedServices (  )  [private]

Adds the selected service in the listbox of available services to the listbox of controlled services.

void ServicesCtl.ServicesSettingsForm.removeFromSelectedServices (  )  [private]

Removes the selected service in the listbox of controlled services from the listbox and add it to the listbox of available services.

override void ServicesCtl.ServicesSettingsForm.Dispose ( bool  disposing  )  [protected]

Clean up any resources being used.

Parameters:
disposing true if managed resources should be disposed; otherwise, false.

void ServicesCtl.ServicesSettingsForm.InitializeComponent (  )  [private]

Required method for Designer support - do not modify the contents of this method with the code editor.


Member Data Documentation

ServiceController [] ServicesCtl.ServicesSettingsForm.availableServices = new ServiceController[0] [private]

An Array of all local services.

ArrayList ServicesCtl.ServicesSettingsForm.selectedServices = new ArrayList() [private]

An array of the selected services. This array is just populated upon clicking the ok button.

bool ServicesCtl.ServicesSettingsForm.canceled = false [private]

A flag that the cancel button has been clicked.

System.ComponentModel.IContainer ServicesCtl.ServicesSettingsForm.components = null [private]

Required designer variable.


Property Documentation

ServiceController [] ServicesCtl.ServicesSettingsForm.AvailableServices [get, set]

An array of all local available services.

ArrayList ServicesCtl.ServicesSettingsForm.SelectedServices [get, set]

An Array of the selected Services.

bool ServicesCtl.ServicesSettingsForm.Canceled [get]

A flag that is set to true when the dialog has been closed by the cancel button.


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