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