private void labelprofile_Click(object sender, EventArgs e)
        {
            var form2 = new PappyjoeMVC.View.Patient_Profile_Details();

            form2.doctor_id  = doctor_id;
            form2.patient_id = patient_id;
            form2.Closed    += (sender1, args) => this.Close();
            this.Hide();
            form2.Show();
        }
        private void listpatientsearch_MouseClick(object sender, MouseEventArgs e)
        {
            var form2 = new PappyjoeMVC.View.Patient_Profile_Details();

            form2.doctor_id           = doctor_id;
            form2.patient_id          = listpatientsearch.SelectedValue.ToString();
            listpatientsearch.Visible = false;
            this.Hide();
            form2.Show();
        }