Esempio n. 1
0
        private void button7_Click(object sender, EventArgs e)
        {
            this.Hide();
            LoginCommand User = new LoginSystem();

            User.Logout();
            this.Close();
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //Login --> Command Pattern
            Account      account = new Account(textBox1.Text.ToString(), textBox2.Text.ToString());
            LoginCommand User    = new LoginSystem(account);

            User.Login();
            //
            if (User.success)
            {
                this.Hide();
            }
        }