private void ButtonChangeClick(object sender, EventArgs e) { if (comboBoxEnableIPAddress.SelectedIndex == -1) { return; } VisionSensorStore.StartPoint = AvailableNicExplorer.GetClients()[comboBoxEnableIPAddress.SelectedIndex]; UpdateControls(); }
private void UpdateControls() { comboBoxEnableIPAddress.Items.Clear(); foreach (IPAddress item in AvailableNicExplorer.GetClients()) { comboBoxEnableIPAddress.Items.Add(item); comboBoxEnableIPAddress.SelectedIndex = 0; } labelClientIPAddress.Text = VisionSensorStore.StartPoint.ToString(); }
private static void ChooseNicInCaseMultiplyClientNicsAreAvailable() { // Select client(PC-side) Nic. You can change this settings later also. if (1 >= AvailableNicExplorer.GetClients().Count) { return; } using (var dialog = new IPComputador()) { dialog.ShowDialog(); } }