public static FrmDivisionDetails getinstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new FrmDivisionDetails();
     }
     else
     {
         instance.BringToFront();
     }
     return(instance);
 }
Beispiel #2
0
        private void btndivision_Click(object sender, EventArgs e)
        {
            FrmDivisionDetails frm = FrmDivisionDetails.getinstance();

            frm.TopLevel = false;
            btnlist.Controls.Add(frm);
            frm.BringToFront();
            frm.Show();


            SidePanel.Height = btndivision.Height;
            SidePanel.Top    = btndivision.Top;
        }