Example #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            hideUnwantedForms();
            modify_inventory mi = modify_inventory.getModifyInventory(splitContainer1, this);

            mi.Location        = new Point((splitContainer1.Panel2.Width - mi.Width) / 2, (splitContainer1.Panel2.Height - mi.Height) / 2);
            mi.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            mi.Show();
        }
Example #2
0
 public static modify_inventory getModifyInventory(SplitContainer s, Form f)
 {
     if (inst3 == null || inst3.IsDisposed)
     {
         inst3           = new modify_inventory();
         inst3.MdiParent = f;
         s.Panel2.Controls.Add(inst3);
         return(inst3);
     }
     else
     {
         return(inst3);
     }
 }