Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            hideUnwantedForms();
            Inventory_details_welivita id = Inventory_details_welivita.getInventoryDetails(splitContainer1, this);

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