Crash8308_17866
Oct 27, 2010Nimbostratus
Toggle Pool members in .net (c sharp)?
I am writing a somewhat "Master Control" form application for the ops guys on our team and am having difficulty finding the right method to use for toggling.
I am using iControl 10.2 and here is the relevant code:
private void BTN_ToggleNodeStatus_Click(object sender, EventArgs e)
{
initialize(); //where i initialize my connection
Object[] hosts = new Object[dataGridView1.SelectedCells.Count];
int i = 0;
foreach (DataGridViewCell cell in DGV_F5NodeStatus.SelectedCells)
{
hosts[i++] = cell.Value.ToString(); //creating the array of names that i want to toggle the status of
}
//this is where i am lost, what to do with the array? what iControl method do I invoke to toggle/set the status?
}