Beispiel #1
0
        private void btnThemSanPham_Click(object sender, EventArgs e)
        {
            frmThemSanPham frm = new frmThemSanPham();

            frm.MdiParent = this.MdiParent;
            frm.Dock      = DockStyle.Fill;
            frm.Show();
            this.LayoutMdi(MdiLayout.TileHorizontal);
        }
Beispiel #2
0
 private void ThemSanPham_Click(object sender, EventArgs e)
 {
     if (frmThemSP == null)
     {
         frmThemSP             = new frmThemSanPham();
         frmThemSP.MdiParent   = this;
         frmThemSP.Dock        = DockStyle.Fill;
         frmThemSP.WindowState = FormWindowState.Maximized;
         frmThemSP.Show();
     }
     else
     {
         frmThemSP.BringToFront();
     }
     //this.LayoutMdi(MdiLayout.TileHorizontal);
 }