Example #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            string       by = "clientFaceregister";
            FrmPrincipal t  = new FrmPrincipal(by);

            t.ShowDialog();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //this.Hide();
            FrmPrincipal frm = new FrmPrincipal();

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

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

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

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

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

            FrmPrincipal frm = new FrmPrincipal();
            frm.Show();
            this.Hide();
        }
Example #8
0
        private void btnsignup_Click(object sender, EventArgs e)
        {
            sidepanal.Top = btnsignup.Top;
            signface      = "faceds";
            FrmPrincipal b = new FrmPrincipal(signface);

            b.ShowDialog();
        }
Example #9
0
        private void button5_Click(object sender, EventArgs e)
        {
            string bg = "clientFaceregister1";

            FrmPrincipal v = new FrmPrincipal(bg);

            v.ShowDialog();
        }
        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();
        }
Example #11
0
        private void Button_Absensi_Click(object sender, EventArgs e)
        {
            string NIP_Awal = "1";
            string path = "All";
            string folder = "TrainedFaces2";

            FrmPrincipal frmmain = new FrmPrincipal(NIP_Awal,path,folder);
            DialogResult dr = frmmain.ShowDialog();
            //this.Close();
            //this.Hide();
        }
Example #12
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");
            }
        }
Example #14
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 !!!";
     }
 }
Example #15
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)
            {
            }
        }
Example #17
0
 void frm_Disposed(object sender, EventArgs e)
 {
     frmp = null;
 }
Example #18
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            FrmPrincipal newfrm = new FrmPrincipal();

            newfrm.Show();
        }
Example #19
0
        private void button7_Click(object sender, EventArgs e)
        {
            FrmPrincipal f = new FrmPrincipal(facere);

            f.ShowDialog();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            FrmPrincipal f = new FrmPrincipal();

            f.Show();
        }