private int GetSelectedIndex(NetworkConfigurationMethod networkConfigurationMethod) { for (int i = 0; i < comboBoxMethod.Items.Count; i++) { var m = comboBoxMethod.Items[i] as NetworkConfigurationUIItem; if (m.Method == networkConfigurationMethod) { return(i); } } return(-1); }
private int GetSelectedIndex(NetworkConfigurationMethod networkConfigurationMethod) { for (int i = 0; i < comboBoxMethod.Items.Count; i++) { var m = comboBoxMethod.Items[i] as NetworkConfigurationUIItem; if (m.Method == networkConfigurationMethod) return i; } return -1; }
public NetworkConfigurationUIItem(NetworkConfigurationMethod item) { this.item = item; }