Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            AccountCommand account = new AccountCommand("khanh");

            Command   open      = new SignOut(account);
            Command   close     = new CloseAccount(account);
            HealthApp healthApp = new HealthApp(open, close);

            MessageBox.Show(healthApp.clickSignOutAccount());
            this.Close();
        }
Esempio n. 2
0
 public CloseAccount(AccountCommand account)
 {
     this.account = account;
 }
Esempio n. 3
0
 public SignOut(AccountCommand account)
 {
     this.account = account;
 }