private void newProductToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmStock frm = new frmStock();

            frm.TopLevel = false;
            panelParent.Controls.Add(frm);
            frm.BringToFront();
            frm.Show();
        }
Esempio n. 2
0
 private void stockToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (stock.IsDisposed)
     {
         stock = new frmStock();
     }
     stock.MdiParent = this;
     stock.Show();
     stock.BringToFront();
 }