Example #1
0
 private void btnEditUser_Click(object sender, RoutedEventArgs e)
 {
     if (null == AccountancyApplication.SelectedUser)
         return;
     UserInfoDialog dlg = new UserInfoDialog(AccountancyApplication.SelectedUser);
     if (true != dlg.ShowDialog())
         return;
     AccountancyApplication.UpdatePerson(dlg.PersonInfo);
 }
Example #2
0
 private void btnAddUser_Click(object sender, RoutedEventArgs e)
 {
     UserInfoDialog dlg = new UserInfoDialog(AccountancyApplication.NewPerson());
     if (true != dlg.ShowDialog())
         return;
     AccountancyApplication.AddPerson(dlg.PersonInfo);
 }