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

            bd.Close();

            IBankAccount ba = bd;

            ba.Close();

            IWindow w = bd;

            w.Close();

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