public static void AddKnownNXT(List<KnownNXT> list, KnownNXT knownNXT) { foreach (KnownNXT existing in list) { if (existing.Equals(knownNXT)) return; } list.Add(knownNXT); }
public static int Compare(KnownNXT left, KnownNXT right) { return String.Compare(left.NxtName, right.NxtName); }
private void comboBoxNXTSelection_SelectedIndexCommitted(object sender, EventArgs e) { if (this.currentNXT != null) { if (this.currentNXT != this.SelectedNXT) { this.currentNXT.Stop(); this.currentNXT = null; } } UpdateEnabledState(); }