private void btnCompletedAppointments_Click(object sender, EventArgs e) { dvgCompletedAppointments.DataSource = examinationController.GetAllCompleteExaminations(doctor.DoctorId); pnlTodaysAppointments.Visible = false; pnlCompletedAppointments.Visible = true; }