private void patientIDcomboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (patientIDcomboBox.SelectedIndex > 0)
            {
                DbConnector dbConn = new DbConnector();
                dbConn.connect();
                PatientHandler patientHandler = new PatientHandler();

                patientGridView.DataSource = patientHandler.getSpecificPatientList(dbConn.getConn(), patientIDcomboBox.SelectedItem.ToString());
            }
        }
        private void viewBtn_Click(object sender, EventArgs e)
        {
            DbConnector dbConn = new DbConnector();

            dbConn.connect();
            PatientHandler patientHandler = new PatientHandler();

            int patientId = int.Parse(patientIDcomboBox.Text);

            bool status = patientHandler.checkPatientID(dbConn.getConn(), patientId);

            if (status)
            {
                patientGridView.DataSource = patientHandler.getSpecificPatientList(dbConn.getConn(), patientIDcomboBox.Text);
            }
            else
            {
                MessageBox.Show("Invalid patient ID. Please try again", "Patient Not In Record", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }