private void discoverButton_Click(object sender, EventArgs e) { NetworkDiscoveryWorkItemController controller = WorkItem.Controller as NetworkDiscoveryWorkItemController; if (adRadioButton.Checked) { controller.RunBothDiscovery = false; controller.RunAdNetworkDiscovery(); } else if (netbiosRadioButton.Checked) { controller.RunBothDiscovery = false; controller.RunNetbiosNetworkDiscovery(); } else if (tcpipRadioButton.Checked) { controller.RunBothDiscovery = false; controller.RunTcpipNetworkDiscovery(); } else if (snmpRadioButton.Checked) { controller.RunBothDiscovery = false; controller.RunSNMPNetworkDiscovery(); } }
private void discovery_ToolClick(object sender, ToolClickEventArgs e) { NetworkDiscoveryWorkItemController controller = workItem.Controller as NetworkDiscoveryWorkItemController; switch (e.Tool.SharedProps.Caption) { case ToolNames.adImport: controller.RunAdNetworkDiscovery(); break; case ToolNames.netbiosImport: controller.RunNetbiosNetworkDiscovery(); break; case ToolNames.tcpipImport: controller.RunBothDiscovery = false; controller.RunTcpipNetworkDiscovery(); break; case ToolNames.tcpipSettings: //controller.ShowSettings(); FormTcpipSettings formTCPIP = new FormTcpipSettings(); formTCPIP.ShowDialog(); break; case "Find SNMP devices": controller.RunSNMPNetworkDiscovery(); break; case "SNMP Advanced Settings": FormSNMPSettings formSNMP = new FormSNMPSettings(); formSNMP.ShowDialog(); break; case "Auto-Discovery Settings": FormAutoScan formAutoScan = new FormAutoScan(); formAutoScan.ShowDialog(); break; case "Active Directory Advanced Settings": FormADSettings formADSettings = new FormADSettings(); formADSettings.ShowDialog(); break; default: break; } }