Exemplo n.º 1
0
        public void btnLogin_Click(object sender, EventArgs e)
        {
            if (txbId.Text.Length >= 4 && txbPw.Text.Length >= 4)
            {
                frm.disPlayData();
                frm.Show();


                // frm.Hide();


                //frm.Load += new EventHandler(frm.FrmPrincipal_Load);
                // check = false;

                //MessageBox.Show("login");


                //this.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Login faild", "Error");
            }
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //this.Hide();
            FrmPrincipal frm = new FrmPrincipal();

            frm.Show();
        }
Exemplo n.º 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            FrmPrincipal add = new FrmPrincipal();

            this.Hide();
            add.Show();
        }
Exemplo n.º 4
0
        private void btnExist_Click(object sender, EventArgs e)
        {
            FrmPrincipal frmPrincipal = new FrmPrincipal('e');

            frmPrincipal.Show();
            this.Hide();
        }
Exemplo n.º 5
0
        private void button3_Click(object sender, EventArgs e)
        {
            FrmPrincipal frmgo = new FrmPrincipal();

            frmgo.Show();
            this.Hide();
        }
Exemplo n.º 6
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmPrincipal mainform = new FrmPrincipal();

            mainform.Show();
            this.Hide();
        }
Exemplo n.º 7
0
        void tmr_Tick(object sender, EventArgs e)
        {
            tmr.Stop();

            FrmPrincipal frm = new FrmPrincipal();
            frm.Show();
            this.Hide();
        }
        private void button3_Click_1(object sender, EventArgs e)
        {
            Empty();
            MessageBox.Show("Đã xóa tất cả dữ liệu tranning", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
            FrmPrincipal fr = new FrmPrincipal();

            this.Hide();
            fr.Show();
        }
Exemplo n.º 9
0
        private void button2_Click(object sender, EventArgs e)
        {
            FrmPrincipal frmp = this.FrmInstance;

            frmp.Show();

            // si el Formulario estaba abierto seguramente este en segundo plano
            // con esta linea hacemos que pase adelante
            frmp.BringToFront();
            this.Hide();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            string a = textBox1.Text;
            string b = textBox2.Text;

            if (a == "admin" && b == "admin22" || a == "ADMIN" && b == "ADMIN22")
            {
                FrmPrincipal mainform = new FrmPrincipal();
                mainform.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Please Enter the Valid User Name & Password");
            }
        }
Exemplo n.º 11
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (label3.Text == "2" || label3.Text == "3")
     {
         this.Hide();
         FrmPrincipal adicionar = new FrmPrincipal();
         adicionar.nomelbl.Text  = label4.Text;
         adicionar.nivellbl.Text = label3.Text;
         adicionar.Closed       += (s, args) => this.Close();
         adicionar.Show();
     }
     else
     {
         acessolbl.Text = "ACESSO NEGADO !!!";
     }
 }
Exemplo n.º 12
0
 private void Btn_CariNIP_Click(object sender, EventArgs e)
 {
     CariPengguna cp = new CariPengguna();
     if (cp.statuscariuser3(Txt_NIP.Text) == true)
     {
         string nip_baru = Txt_NIP.Text;
         string path_baru = nip_baru;
         string folder_baru = "TrainedFaces";
         //load_traineface(nip_baru);
         FrmPrincipal frm = new FrmPrincipal(nip_baru, path_baru, folder_baru);
         this.Close();
         frm.Show();
     }
     else
     {
         MessageBox.Show("N.I.P yang anda masukkan tidak terdaftar di database");
         Txt_NIP.Clear();
         Txt_NIP.Focus();
     }
 }
        private void xóaDữLiệuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Phục hồi dữ liệu - Sẻ mất dữ liệu cũ", "Xác nhận", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                try
                {
                    Empty();
                    MessageBox.Show("Đã xóa tất cả dữ liệu tranning", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    FrmPrincipal fr = new FrmPrincipal();
                    this.Hide();
                    fr.Show();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString());
                }
            }
            else if (dialogResult == DialogResult.No)
            {
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            FrmPrincipal f = new FrmPrincipal();

            f.Show();
        }
Exemplo n.º 15
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            FrmPrincipal newfrm = new FrmPrincipal();

            newfrm.Show();
        }