Ejemplo n.º 1
0
        private void themSachToolStripButton_Click(object sender, EventArgs e)
        {
            //QuanLyLoaiSach frmQL = new QuanLyLoaiSach();
            //frmQL.TopLevel = false;
            //frmQL.FormBorderStyle = FormBorderStyle.None;
            //frmQL.Dock = DockStyle.Fill;
            //panel1.Controls.Add(frmQL);
            //frmQL.Top = panel1.Top;
            //frmQL.Left = (panel1.Right - panel1.Left) / 2;
            //frmQL.Show();

            //QuanLyLoaiSach frmQLS = new QuanLyLoaiSach();
            //frmQLS.ShowDialog();

            //    TimKiemSach frmTimKiem = new TimKiemSach();
            //  frmTimKiem.ShowDialog();
            if (frmDangNhap.kiemTraDangNhap == true)
            {
                //frmQuanLySach frm = new frmQuanLySach();
                frmQuanLySanPham frm = new frmQuanLySanPham();
                frm.Show();
            }
            else
            {
                frmDangNhap frm = new frmDangNhap();
                frm.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        private void TimKiemCapNhatSanPham_Click(object sender, EventArgs e)
        {
            if (frmQLSP == null)
            {
                frmQLSP             = new frmQuanLySanPham();
                frmQLSP.MdiParent   = this;
                frmQLSP.Dock        = DockStyle.Fill;
                frmQLSP.WindowState = FormWindowState.Maximized;
                frmQLSP.Show();
            }
            else
            {
                frmQLSP.BringToFront();
            }

            //this.LayoutMdi(MdiLayout.TileHorizontal);
        }