示例#1
0
        private void btnEmployeeSearch_Click(object sender, EventArgs e)
        {
            EmployeeMaintenance emp = new EmployeeMaintenance();

            emp.Show();
            Hide();
        }
示例#2
0
        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++;
            }
        }