RemoveAccount() public static method

public static RemoveAccount ( Account account ) : void
account Account
return void
Beispiel #1
0
        private void AccountDelete_Click(object sender, RoutedEventArgs e)
        {
            Account acct = ((FrameworkElement)e.OriginalSource).DataContext as Account;

            if (acct == null)
            {
                return;
            }
            Account.RemoveAccount(acct);
        }
Beispiel #2
0
        private void AccountNew_Click(object sender, RoutedEventArgs e)
        {
            Account acct = new Account();

            Account.AddAccount(acct);
            if (!acct.edit())
            {
                Account.RemoveAccount(acct);
            }
        }