예제 #1
0
        public void UpdateMember()
        {
            if (SelectedItem == null)
            {
                return;
            }
            var view = new MemberDetailView(Items, SelectedItem);

            view.ShowDialog();
            Items = GetMemberItems(Filter);
        }
예제 #2
0
        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);
        }