private void OnBuggsAdd(Bugg BuggInstance) { Buggs_Crashes.Add(new Buggs_Crash { Crash = this, Bugg = BuggInstance }); SendPropertyChanged(null); }
private void OnCrashesAdd(Crash CrashInstance) { Buggs_Crashes.Add(new Buggs_Crash { Bugg = this, Crash = CrashInstance }); SendPropertyChanged(null); }
private void OnCrashesRemove(Crash CrashInstance) { Buggs_Crash BuggCrash = Buggs_Crashes.FirstOrDefault(BuggCrashInstance => BuggCrashInstance.BuggId == Id && BuggCrashInstance.CrashId == CrashInstance.Id); Buggs_Crashes.Remove(BuggCrash); SendPropertyChanged(null); }
private void OnBuggsRemove(Bugg BuggInstance) { var BuggCrash = Buggs_Crashes.FirstOrDefault( c => c.CrashId == Id && c.BuggId == BuggInstance.Id); Buggs_Crashes.Remove(BuggCrash); SendPropertyChanged(null); }