private void update_button_Click(object sender, EventArgs e)
        {
            if (employee_dataGridView.Rows.Count > 0)
            {
                int selectedRow = employee_dataGridView.Rows.GetFirstRow(DataGridViewElementStates.Selected);
                int empid       = Convert.ToInt32(employee_dataGridView.Rows[selectedRow].Cells["EmpID"].Value);

                DataTable dt = Employee_Methods.loadEmployeeDetails_Form(empid);

                employeeadd          = new EmployeeRegistration(LoadUpdateForm(dt), this);
                employeeadd.isUpdate = true;
                employeeadd.TopLevel = false;
                employeeadd.Parent   = ClassCall.mainFormObj.masterpanel;
                employeeadd.Dock     = DockStyle.Fill;
                employeeadd.BringToFront();
                employeeadd.Focus();
                employeeadd.Show();

                this.Dispose();
            }
        }
        private void EmployeeRegistration_Click(object sender, EventArgs e)
        {
            EmployeeRegistration empreg = new EmployeeRegistration();

            Formcall(empreg);
        }