Exemplo n.º 1
0
        private void theloaisach_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            Formchinh f = new Formchinh();

            f.Show();
        }
Exemplo n.º 2
0
        private void thoat_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form f = new Formchinh();

            f.Show();
        }
Exemplo n.º 3
0
        private void Formnhaxb_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            Formchinh f = new Formchinh();

            f.Show();
        }
Exemplo n.º 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            Formchinh f = new Formchinh();

            this.Hide();
            f.Show();
        }
Exemplo n.º 5
0
        public void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Formchinh frm = new Formchinh();

            frm.Show();
        }
Exemplo n.º 6
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (taikhoan.Text == "")
            {
                MessageBox.Show("Bạn chưa nhập tài khoản");
                taikhoan.Focus();
            }
            else if (matkhau.Text == "")
            {
                MessageBox.Show("Bạn chưa nhập mật khẩu");
                matkhau.Focus();
            }
            else if (user.Equals(taikhoan.Text) && pass.Equals(matkhau.Text))
            {
                MessageBox.Show("Đăng nhập thành công");

                Form f = new Formchinh();
                f.Show();
                this.Show();
                this.taikhoan.Text = "";
                this.matkhau.Text  = "";
            }
            else
            {
                if (khach.Equals(taikhoan.Text) && pass2.Equals(matkhau.Text))
                {
                    MessageBox.Show("Đăng nhập thành công");

                    Form f = new FormKhach();
                    f.Show();
                    this.Show();
                    this.taikhoan.Text = "";
                    this.matkhau.Text  = "";
                }
                else
                {
                    MessageBox.Show("Tên đăng nhập hoặc mật khẩu sai");
                }
            }
        }
Exemplo n.º 7
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (taikhoan.Text == "")
     {
         LblThongBao.Text = "* Vui lòng nhập tài khoản";
         taikhoan.Focus();
     }
     else if (matkhau.Text == "")
     {
         LblThongBao.Text = "* Vui lòng nhập mật khẩu";
         matkhau.Focus();
     }
     else if (user.Equals(taikhoan.Text) && pass.Equals(matkhau.Text))
     {
         MessageBox.Show("Đăng nhập thành công", "Chúc mừng!", MessageBoxButtons.OK, MessageBoxIcon.Information);
         this.Hide();
         Form f = new Formchinh();
         f.Show();
     }
     else
     {
         MessageBox.Show("Tên đăng nhập hoặc mật khẩu sai", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }