コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            hideUnwantedForms();
            inventory_details_mulleriyawa id = inventory_details_mulleriyawa.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.inventory_details_Load(sender, e);
            id.Show();
        }
 public static inventory_details_mulleriyawa getInventoryDetails(SplitContainer s, Form f)
 {
     if (inst == null || inst.IsDisposed)
     {
         inst           = new inventory_details_mulleriyawa();
         inst.MdiParent = f;
         s.Panel2.Controls.Add(inst);
         return(inst);
     }
     else
     {
         return(inst);
     }
 }