예제 #1
0
        public void FilterDoctorsAndUpdateView(string fullName, string id)
        {
            try
            {
                MyDb.FilterDoctors(fullName, id);

                DoctorsDataGridView.DataSource  = MyDb.DSet.Tables[0];
                PatientsDataGridView.DataSource = MyDb.DSet.Tables[1];
                var doctorVisitsDataSourse = new BindingSource {
                    DataSource = MyDb.DSet.Tables[2]
                };
                DoctorVisitsDataGridView.DataSource        = doctorVisitsDataSourse;
                DoctorVisitsBindingNavigator.BindingSource = doctorVisitsDataSourse;
            }
            catch (Exception e)
            {
                ShowAppError(e.Message);
            }
        }