Forum Discussion
Crash8308_11258
Oct 27, 2010Nimbostratus
I found out how i could do it by reading the SDK:
public void togglenodestatus(CommonEnabledState state)
{
string[] hosts = new string[dataGridView1.SelectedCells.Count];
CommonEnabledState[] states = new CommonEnabledState[dataGridView1.SelectedCells.Count];
int i = 0;
foreach (DataGridViewCell cell in DGV_F5NodeStatus.SelectedCells)
{
hosts = cell.Value.ToString();
states[i++] = state;
}
;
TheInterface.LocalLBNodeAddress.set_session_enabled_state(hosts, states);