internal static ItemX GetSelectedItemX(ComboBox.ObjectCollection objectCollection, string id) { return(objectCollection.OfType <ItemX>().FirstOrDefault(r => r.Value == id.ToString())); }
internal static ItemX GetSelectedByNameItemX(ComboBox.ObjectCollection objectCollection, string name) { return(objectCollection.OfType <ItemX>().FirstOrDefault(r => r.Name == name)); }