예제 #1
0
        private void btnRegister_Click(object sender, EventArgs e)
        {
            //Form_Register f = new Form_Register();
            //f.ShowDialog();
            //this.Close();
            Form_Register frm = new Form_Register(this.parent, this)
            {
                TopLevel = false,
                TopMost  = true
            };

            this.parent.fpnlChiTiet.Visible = true;
            this.parent.fpnlProduct.Visible = false;
            this.parent.fpnlChiTiet.Controls.Clear();
            this.parent.fpnlChiTiet.Controls.Add(frm);
            frm.Show();
        }
예제 #2
0
        private void btnDK_Click(object sender, EventArgs e)
        {
            txtSearch2.Text = "";
            panel2.Controls.Clear();
            fpnlItem.Controls.Clear();
            fpnlItem.Visible = false;

            Form_Register f = new Form_Register()
            {
                TopLevel = false,
                TopMost  = true
            };

            f.timer1.Enabled         = false;
            f.btnDangkyAdmin.Visible = f.btnThoat.Visible = true;
            f.btnDangky.Visible      = false;
            f.bunifuLabel1.Visible   = f.bunifuLabel2.Visible = f.bunifuLabel3.Visible = f.bunifuLabel4.Visible = false;
            f.label1.Visible         = f.lblDangNhap.Visible = false;
            fpnlItem.Controls.Clear();
            panel2.Controls.Clear();
            panel2.Controls.Add(f);
            f.Show();
        }