public void UpdateMember() { if (SelectedItem == null) { return; } var view = new MemberDetailView(Items, SelectedItem); view.ShowDialog(); Items = GetMemberItems(Filter); }
public void NewMember() { var view = new MemberDetailView(Items, null); view.ShowDialog(); foreach (var item in Items) { if (AllMembers.All(a => a.MemberId != item.MemberId)) { AllMembers.Add(item); } } Items = GetMemberItems(Filter); }