private void quanLySVToolStripMenuItem_Click(object sender, EventArgs e) { FrmDangky f = new FrmDangky(); f.MdiParent = this; f.Show(); }
private void frmMain_Load(object sender, EventArgs e) { if (f2.dadangnhap == true && f2.quanly == true) { windowsToolStripMenuItem.Enabled = true; nhapLieuToolStripMenuItem.Enabled = true; phanQuyenSDToolStripMenuItem.Enabled = true; FrmDangky f = new FrmDangky(); f.MdiParent = this; f.Show(); } else if (f2.dadangnhap == true && f2.quanly == false) { windowsToolStripMenuItem.Enabled = true; } else { windowsToolStripMenuItem.Enabled = false; nhapLieuToolStripMenuItem.Enabled = false; phanQuyenSDToolStripMenuItem.Enabled = false; } }