void SelectionChanged() { try { selectedBeteg = BetegTabla.Where(b => b.Deleted == 0 && b.PeopleID == selectedPeopleBeteg.PeopleID).First(); selectedKorlapFej = KortortenetFej.Where(k => k.Deleted == 0 && k.BetegID == selectedBeteg.BetegID).First(); SelectedKorlapTetel = new ObservableCollection <Kortortenet_tetel>(KortortenetTetel.Where(kt => kt.Deleted == 0 && kt.KortortenetFejID == selectedKorlapFej.KortortenetFejID)); OnPropChanged("selectedKorlapTetel"); } catch { } }
void SelectionChanged() { try { selectedBeteg = BetegTabla.Where(b => b.Deleted == 0 && b.PeopleID == selectedPeopleBeteg.PeopleID).First(); selectedKorlapFej = KortortenetFej.Where(k => k.Deleted == 0 && k.BetegID == selectedBeteg.BetegID).First(); SelectedKorlapTetel = new ObservableCollection <Kortortenet_tetel>(KortortenetTetel.Where(kt => kt.Deleted == 0 && kt.KortortenetFejID == selectedKorlapFej.KortortenetFejID)); OnPropChanged("selectedKorlapTetel"); } catch { //ms.Kortortenet_fej.Add(new Kortortenet_fej() { BetegID = selectedBeteg.BetegID, Deleted = 0 }); //Mentes(); //MungoSystemInitial(ms); try { selectedKorlapFej = KortortenetFej.Where(k => k.Deleted == 0 && k.BetegID == selectedBeteg.BetegID).First(); OnPropChanged("selectedKorlapTetel"); } catch { } } }