示例#1
0
 private void btnAccountAdd_Click(object sender, RoutedEventArgs e)
 {
     AccountDialog dlg = new AccountDialog(AccountancyApplication.SelectedUser, AccountancyApplication);
     if (true != dlg.ShowDialog())
         return;
     AccountancyApplication.AddAccount(dlg.AccountInfo);
 }
示例#2
0
 private void btnAccountChange_Click(object sender, RoutedEventArgs e)
 {
     if (null == AccountancyApplication.SelectedAccount)
         return;
     AccountDialog dlg = new AccountDialog(AccountancyApplication.SelectedAccount, AccountancyApplication);
     if (true != dlg.ShowDialog())
         return;
     AccountancyApplication.UpdateAccount(AccountancyApplication.SelectedAccount);
 }