private void btnAccountAdd_Click(object sender, RoutedEventArgs e) { AccountDialog dlg = new AccountDialog(AccountancyApplication.SelectedUser, AccountancyApplication); if (true != dlg.ShowDialog()) return; AccountancyApplication.AddAccount(dlg.AccountInfo); }
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); }