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