private void AddBankAccount() { ProfileBankAccountDialog v = new ProfileBankAccountDialog(); v.ShowDialog(); LoadBankAccounts(); }
private void EditBankAccount() { try { if (dgItems.SelectedItem != null) { int ID = (dgItems.SelectedItem as ProfileBankAccountView).id; ProfileBankAccountDialog v = new ProfileBankAccountDialog(ID); v.ShowDialog(); LoadBankAccounts(); } } catch (Exception) { } }