public void ShowPopUpWindow(ShowPopUpMessage msg) { if (msg?.AddNewEntryWindow != null) { CurrentlyDisplayedDialog = msg.AddNewEntryWindow; Application.Current.Dispatcher.BeginInvoke(new Action(() => { CurrentlyDisplayedDialog.ShowDialog(); })); } }
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); }
private void DoAddExpenss() { var showAddNewDonationMsg = ShowPopUpMessage.ForEntity <CommitteeExpens>(OnSuccess_AddingNewExpenss, CurrentCommittee); MessengerInstance.Send(showAddNewDonationMsg); }
private void DoAddDonation() { var showAddNewDonationMsg = ShowPopUpMessage.ForEntity <Donation>((d) => UserDonationsList.Add(d as Donation)); MessengerInstance.Send(showAddNewDonationMsg); }
private void DoAddCommittee() { var showAddNewCommitteeMsg = ShowPopUpMessage.ForEntity <Committee>(OnSuccess_AddingNewCommittee); MessengerInstance.Send(showAddNewCommitteeMsg); }
private void DoAddUser() { var showAddNewMemberMsg = ShowPopUpMessage.ForEntity <MemberUser>(OnSuccess_AddingNewMember, CurrentCommittee); MessengerInstance.Send(showAddNewMemberMsg); }