RemoveAccount() публичный статический Метод

public static RemoveAccount ( Account account ) : void
account Account
Результат void
Пример #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);
        }
Пример #2
0
        private void AccountNew_Click(object sender, RoutedEventArgs e)
        {
            Account acct = new Account();

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