public static RemoveAccount ( |
||
account | ||
리턴 | void |
private void AccountDelete_Click(object sender, RoutedEventArgs e) { Account acct = ((FrameworkElement)e.OriginalSource).DataContext as Account; if (acct == null) { return; } Account.RemoveAccount(acct); }
private void AccountNew_Click(object sender, RoutedEventArgs e) { Account acct = new Account(); Account.AddAccount(acct); if (!acct.edit()) { Account.RemoveAccount(acct); } }