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