示例#1
0
        private void button4_Click_1(object sender, EventArgs e)
        {
            bool result = DoctorClass.DrIdValidOrNot(int.Parse(textBox1.Text));

            if (result == true)
            {
                PatientClass.BookDoctorByPatient(int.Parse(textBox1.Text), PatientClass.GetPatientID(emailID), comboBox1);
            }
            else
            {
                MessageBox.Show("Try with correct id from the list", "Query Result");
            }
        }
 private void PatientAppoinmentDetails_Load(object sender, EventArgs e)
 {
     PatientClass.ShowPatientBookingDetails(dataGridView1, PatientClass.GetPatientID(emailID));
 }