public static ChangePersonalDetails getChangePersonalDetails(string fName, string lName, int id, string adress, string UName, string password, string branch, int working, string type, string dob, int salary)
        {
            if (changePersonalDetails == null)
            {
                changePersonalDetails = new ChangePersonalDetails(fName, lName, id, adress, UName, password, branch, working, type, dob, salary);
            }

            return(changePersonalDetails);
        }
        private void btnChangeDetails_Click(object sender, EventArgs e)
        {
            parentButtonActivation(false);
            readDetails();
            //ChangePersonalDetails availabilityForm = ChangePersonalDetails.getChangePersonalDetails(firstName,lastName, logged_id, address, userName, password, branch, working, type,dob, salary);
            ChangePersonalDetails availabilityForm = new ChangePersonalDetails(firstName, lastName, logged_id, address, userName, password, branch, working, type, dob, salary);

            availabilityForm.MdiParent = this;
            splitContainer1.Panel2.Controls.Add(availabilityForm);
            availabilityForm.Location        = new Point((splitContainer1.Panel2.Width - availabilityForm.Width) / 2, (splitContainer1.Panel2.Height - availabilityForm.Height) / 2);
            availabilityForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            availabilityForm.Show();
            //availabilityForm.buttonDeactivate();
            availabilityForm.setParentForm(this);
        }