private void FormCloseBtn_Click(object sender, EventArgs e)
 {
     if (isUpdate)
     {
         SearchEmployee obj = new SearchEmployee();
         obj.TopLevel = false;
         obj.Parent   = ClassCall.mainFormObj.masterpanel;
         obj.Dock     = DockStyle.Fill;
         obj.BringToFront();
         obj.Show();
     }
 }
        private void EmployeeProfile_Click(object sender, EventArgs e)
        {
            SearchEmployee empprofile = new SearchEmployee();

            Formcall(empprofile);
        }
 public EmployeeRegistration(EmployeeEntity ey, SearchEmployee obj1)
 {
     InitializeComponent();
     this.ey           = ey;
     searchemployeeobj = obj1;
 }
        private void UpdateEmployee_Click(object sender, EventArgs e)
        {
            SearchEmployee empupdate = new SearchEmployee();

            Formcall(empupdate);
        }