private void btnEmployeeSearch_Click(object sender, EventArgs e) { EmployeeMaintenance emp = new EmployeeMaintenance(); emp.Show(); Hide(); }
private void searchEmployeeToolStripMenuItem_Click(object sender, EventArgs e) { if (employeeMaintenance == null || employeeMaintenance.IsDisposed) { employeeMaintenance = new EmployeeMaintenance(); } if (tabControl.Contains(employeeMaintenance)) { tabControl.TabPages[employeeMaintenance].Select(); } else { employeeMaintenance.Text = "Search For Employee"; tabControl.TabPages.Add(employeeMaintenance); tabCount++; } }