Ejemplo n.º 1
0
        private void nhânViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Dangnhap tc = new Dangnhap();

            tc.Show();
        }
Ejemplo n.º 2
0
        private void đăngNhậpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Dangnhap dn = new Dangnhap();

            dn.Show();
        }
Ejemplo n.º 3
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            Form child = this.MdiChildren.OfType <Dangnhap>().FirstOrDefault();

            if (child == null)
            {
                Dangnhap fm = new Dangnhap();
                fm.MdiParent     = this;
                fm.StartPosition = FormStartPosition.CenterScreen;
                fm.chungthucTK  += DangNhapThanhCong;
                fm.Show();
                return;
            }
            child.Activate();
        }