//Fix appointment
        private void button1_Click(object sender, EventArgs e)
        {
            if (validateTextBoxes())
            {
                if (MessageBox.Show("Are You Sure, You Want to Fix Appointment", "Message", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    if (MessageBox.Show("Prescription and Report of previous Appointment will be removed, Do You Want to Continue?", "Message", MessageBoxButtons.YesNo) == DialogResult.Yes)
                    {
                        updatePatientFile(); //wrinting info in patient file

                        string path = First_Page.pres_path + username + "_prescription.txt";
                        if (File.Exists(path))
                        {
                            File.Delete(path); //if a precription file of patient exits previously than delete it and a new file will be created for next appointement
                        }

                        this.Hide();
                        PatientAppointment pa = new PatientAppointment(username, false);
                        //pa.fixAppointment();  //we want to fix the appointment and find doc
                        pa.ShowDialog();
                        this.Close();
                    }
                }
            }
        }
        private void button4_Click(object sender, EventArgs e)
        {
            this.Hide();
            PatientAppointment pa = new PatientAppointment(username, true);

            pa.ShowDialog();
            this.Close();
        }