Example #1
0
        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;
        }
Example #2
0
        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();
        }