public PersonCreationWindow(AllUsersViewModel.DelegateAddUser delegateAddPerson, AllUsersWindow.UpdateGridDelegate _update, User u = null)
 {
     InitializeComponent();
     DataContext = new PersonCreationViewModel(CloseWindow, delegateAddPerson, _update, u);
 }
Example #2
0
 public PersonCreationViewModel(PersonCreationWindow.DelegateCloseWindow closeWindow, AllUsersViewModel.DelegateAddUser addUser, AllUsersWindow.UpdateGridDelegate _update, User u = null)
 {
     _closeAction   = closeWindow;
     _proceedAction = addUser;
     if (u != null)
     {
         FirstName   = u.FirstName;
         LastName    = u.LastName;
         Email       = u.Email;
         DateOfBirth = u.DateOfBirth;
     }
 }