示例#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);
 }
示例#3
0
 public AddSalaryGrade(FrmSalaryGradeDetails flist)
 {
     InitializeComponent();
     cn      = new SqlConnection(dbcon.Myconnection());
     frmlist = flist;
 }