private void pbxAdd_Click(object sender, EventArgs e)
        {
            UserDetailsForm userForm = new UserDetailsForm();

            userForm.Show();
            this.Hide();
        }
        private void pbxEdit_Click(object sender, EventArgs e)
        {
            int idUser = Int32.Parse(dgvUser.SelectedRows[0].Cells[0].Value.ToString());

            UserDetailsForm userDetails = new UserDetailsForm(idUser);

            userDetails.Show();

            this.Close();
        }
        private void pbxUserEdit_Click(object sender, EventArgs e)
        {
            //UserDetailsForm userdetailsform = new UserDetailsForm();
            //userdetailsform.Show();
            //this.Hide();

            int idUser = Int32.Parse(dgvUserASearch.SelectedRows[0].Cells[0].Value.ToString());

            UserDetailsForm userform = new UserDetailsForm(idUser);

            userform.Show();

            this.Close();
        }