Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            // Sự kiên cho nút Login
            String x = text_username.Text;

            if (x == "sv")
            {
                afterLogin form = new afterLogin();
                form.Show();
            }
            else if (x == "gv")
            {
                teacher_afterLogin form = new teacher_afterLogin();
                form.Show();
            }
            this.Hide();
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            String x = text_username.Text;

            if (x == "sv")
            {
                afterLogin form = new afterLogin();
                form.FormClosed += new FormClosedEventHandler(form_colsed);
                form.Show();
            }
            else if (x == "gv")
            {
                teacher_afterLogin form = new teacher_afterLogin();
                form.FormClosed += new FormClosedEventHandler(form_colsed);
                form.Show();
            }
            this.Hide();
        }