Ejemplo n.º 1
0
        public void ProcessConfig()
        {
            int result;

            result = CauHinh.Check_User(txtTK.Text, txtMK.Text);
            if (result == 1)
            {
                MessageBox.Show("Sai" + lbTK.Text + " Hoac " + lbMK.Text);
                return;
            }
            else if (result == 2)
            {
                MessageBox.Show("Tai Khoan Bi Khoa");
                return;
            }
            if (Program.homeMainForm == null || Program.homeMainForm.IsDisposed)
            {
                Program.homeMainForm = new HomeForm();
            }
            this.Visible = false;
            Program.homeMainForm.Show();
        }