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); }