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. |
ServicesCtl.ServicesSettingsForm.ServicesSettingsForm | ( | ) |
Creates a new instance.
void ServicesCtl.ServicesSettingsForm.buttonOk_Click | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
Event handler for the ok button.
sender | ||
e |
void ServicesCtl.ServicesSettingsForm.buttonCancel_Click | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
event handler for the cancel button
sender | ||
e |
void ServicesCtl.ServicesSettingsForm.buttonAdd_Click | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
Event handler for the add service button.
sender | ||
e |
void ServicesCtl.ServicesSettingsForm.buttonRemove_Click | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
Event handler for the remove service button.
sender | ||
e |
void ServicesCtl.ServicesSettingsForm.OnLoad | ( | object | sender, | |
EventArgs | e | |||
) | [private] |
Event handler for the load event.
sender | ||
e |
void ServicesCtl.ServicesSettingsForm.buttonAdd_DblClick | ( | object | sender, | |
MouseEventArgs | e | |||
) | [private] |
Event handler for the double click in the listbox of available services.
sender | ||
e |
void ServicesCtl.ServicesSettingsForm.buttonRemove_DblClick | ( | object | sender, | |
MouseEventArgs | e | |||
) | [private] |
Event handler for the double click in the listbox of selected services.
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.
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.
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.
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.