예제 #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;
        }
예제 #2
0
 public static FrmSalaryGradeDetails getinstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new FrmSalaryGradeDetails();
     }
     else
     {
         instance.BringToFront();
     }
     return(instance);
 }