Exemple #1
0
        static void Main()
        {
            BankingDialog bd = new BankingDialog();

            bd.Close();

            IBankAccount ba = bd;

            ba.Close();

            IWindow w = bd;

            w.Close();

            ProcessWindow(bd);
        }
Exemple #2
0
 public Bank CloseAccount(IBankAccount bankAccount)
 {
     bankAccount.Close();
     return(this);
 }