public Docappointment(int ID) { InitializeComponent(); this.ID = ID; DatabaseOps doctor = new DatabaseOps(); dataGridViewINP.DataSource = doctor.GetAppointmentofDoctor(this.ID); }
private void comboBoxSearchBy_SelectedIndexChanged_1(object sender, EventArgs e) { if (comboBoxSearchBy.SelectedItem.ToString() == "Current Appointments") { DatabaseOps doctor = new DatabaseOps(); dataGridViewINP.DataSource = doctor.GetAppointmentofDoctor(this.ID, "Current Appointment"); } else { DatabaseOps doctor = new DatabaseOps(); dataGridViewINP.DataSource = doctor.GetAppointmentofDoctor(this.ID); } }
private void comboBoxSearchBy_SelectedIndexChanged(object sender, EventArgs e) { DatabaseOps doctor = new DatabaseOps(); dataGridViewINP.DataSource = doctor.GetAppointmentofDoctor(this.ID); }