Example #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();
        }
Example #2
0
 public CloseAccount(AccountCommand account)
 {
     this.account = account;
 }
Example #3
0
 public SignOut(AccountCommand account)
 {
     this.account = account;
 }