示例#1
0
 public void ShowPopUpWindow(ShowPopUpMessage msg)
 {
     if (msg?.AddNewEntryWindow != null)
     {
         CurrentlyDisplayedDialog = msg.AddNewEntryWindow;
         Application.Current.Dispatcher.BeginInvoke(new Action(() =>
         {
             CurrentlyDisplayedDialog.ShowDialog();
         }));
     }
 }
示例#2
0
        private void DoAddUser()
        {
            var showAddNewDonationMsg = ShowPopUpMessage.ForEntity <BasicUser>((u) =>
            {
                var user = u as BasicUser;
                _fullUsersList.Add(user);
                FilterUsersByType(_currentFilter);
            });

            MessengerInstance.Send(showAddNewDonationMsg);
        }
        private void DoAddActivity()
        {
            var showAddNewDonationMsg = ShowPopUpMessage.ForEntity <CommitteeActivity>(OnSuccess_AddingNewActivity, CurrentCommittee);

            MessengerInstance.Send(showAddNewDonationMsg);
        }
示例#4
0
        private void DoAddExpenss()
        {
            var showAddNewDonationMsg = ShowPopUpMessage.ForEntity <CommitteeExpens>(OnSuccess_AddingNewExpenss, CurrentCommittee);

            MessengerInstance.Send(showAddNewDonationMsg);
        }
示例#5
0
        private void DoAddDonation()
        {
            var showAddNewDonationMsg = ShowPopUpMessage.ForEntity <Donation>((d) => UserDonationsList.Add(d as Donation));

            MessengerInstance.Send(showAddNewDonationMsg);
        }
示例#6
0
        private void DoAddCommittee()
        {
            var showAddNewCommitteeMsg = ShowPopUpMessage.ForEntity <Committee>(OnSuccess_AddingNewCommittee);

            MessengerInstance.Send(showAddNewCommitteeMsg);
        }
示例#7
0
        private void DoAddUser()
        {
            var showAddNewMemberMsg = ShowPopUpMessage.ForEntity <MemberUser>(OnSuccess_AddingNewMember, CurrentCommittee);

            MessengerInstance.Send(showAddNewMemberMsg);
        }