void OnItemPropertyChanged(object sender, PropertyChangedEventArgs e) { CmdrIcon item = sender as CmdrIcon; if (item != null) { ModifiedItems.Add(item); } }
public DSdyn() { //CmdrIcons.CollectionChanged += CmdrIconsChanged; //foreach (string race in DSdata.s_races) foreach (string race in DSdata.s_races_cmdr) { CmdrIcon icon = new CmdrIcon(race, false); CmdrIcons.Add(icon); } }