コード例 #1
0
        private void SubMenu_PhanQuyen_Click(object sender, EventArgs e)
        {
            frm_52_PhanQuyen frm1 = new frm_52_PhanQuyen();
            int indexForm         = LayVitriForm(this, frm1.GetType());

            if (indexForm != -1)
            {
                frm1 = this.MdiChildren[indexForm] as frm_52_PhanQuyen;
                frm1.BringToFront();
            }
            else
            {
                frm1.MdiParent   = this;
                frm1.WindowState = FormWindowState.Normal;
                frm1.Show();
            }
        }
コード例 #2
0
        private void btnPhanQuyen_Click(object sender, EventArgs e)
        {
            frm_52_PhanQuyen frm52 = new frm_52_PhanQuyen();

            frm52.ShowDialog();
        }