public fTrangChu() { InitializeComponent(); string loaitaikhoan = fDangNhap.LoaiTK; if (loaitaikhoan == "user" || loaitaikhoan == "USER") { btnNhanVien.Visible = false; btnTaiKhoan.Visible = false; btnGoiTap.Visible = false; } fInfo f = new fInfo(); if (ExistForm(f)) { return; } f.MdiParent = this; f.Show(); SidePanel.Height = btnHome.Height; SidePanel.Top = btnHome.Top; }
private void btnHome_Click(object sender, EventArgs e) { SidePanel.Height = btnHome.Height; SidePanel.Top = btnHome.Top; fInfo f = new fInfo(); if (ExistForm(f)) { return; } f.MdiParent = this; f.Show(); }