static void Main() { BankingDialog bd = new BankingDialog(); bd.Close(); IBankAccount ba = bd; ba.Close(); IWindow w = bd; w.Close(); ProcessWindow(bd); }
public Bank CloseAccount(IBankAccount bankAccount) { bankAccount.Close(); return(this); }