Exemple #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            hideUnwantedForms();
            emp_management emp = emp_management.getEmpManagement(splitContainer1, this);

            emp.Location        = new Point((splitContainer1.Panel2.Width - emp.Width) / 2, (splitContainer1.Panel2.Height - emp.Height) / 2);
            emp.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            emp.Show();
        }
 public static emp_management getEmpManagement(SplitContainer scon, Form form)
 {
     if (instance == null || instance.IsDisposed)
     {
         instance           = new emp_management();
         instance.MdiParent = form;
         scon.Panel2.Controls.Add(instance);
         return(instance);
     }
     else
     {
         return(instance);
     }
 }