Exemplo 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;
        }
Exemplo n.º 2
0
 public static FrmSalaryGradeDetails getinstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new FrmSalaryGradeDetails();
     }
     else
     {
         instance.BringToFront();
     }
     return(instance);
 }
Exemplo n.º 3
0
 public AddSalaryGrade(FrmSalaryGradeDetails flist)
 {
     InitializeComponent();
     cn      = new SqlConnection(dbcon.Myconnection());
     frmlist = flist;
 }