Пример #1
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (pnMain.Controls["CRAddProduct"] == null)
     {
         pnMain.Controls.Clear();
         CRAddProduct frmaddproduct = new CRAddProduct();
         frmaddproduct.TopLevel = false;
         pnMain.Controls.Add(frmaddproduct);
         frmaddproduct.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         frmaddproduct.Dock            = DockStyle.Fill;
         frmaddproduct.Show();
     }
 }
Пример #2
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (pnMain.Controls["CRAddProduct"] == null)
     {
         pnMain.Controls.Clear();
         CRAddProduct frmaddproduct = new CRAddProduct();
         frmaddproduct.TopLevel = false;
         pnMain.Controls.Add(frmaddproduct);
         frmaddproduct.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         frmaddproduct.Dock = DockStyle.Fill;
         frmaddproduct.Show();
     }
 }