Ejemplo n.º 1
0
        private void btnsalarygrade_Click(object sender, EventArgs e)
        {
            FrmSalaryGradeDetails frm = FrmSalaryGradeDetails.getinstance();

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

            SidePanel.Height = btnsalarygrade.Height;
            SidePanel.Top    = btnsalarygrade.Top;
        }
Ejemplo n.º 2
0
 public static FrmSalaryGradeDetails getinstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new FrmSalaryGradeDetails();
     }
     else
     {
         instance.BringToFront();
     }
     return(instance);
 }