private void BindingDoctor() { DoctorGridView.AutoGenerateColumns = false; AddColumnDoctor(); profileBindingSource.DataSource = typeof(Employee); DoctorSource.DataSource = HospitalManager.GetInstance().EmployeeService.GetElement(); DoctorSource.RemoveFilter(); HospitalManager.GetInstance().EmployeeService.FilterByRole(UserRole.Врач, true); DoctorNavigator.BindingSource = DoctorSource; DoctorGridView.DataSource = DoctorSource; viewProfile_CheckedChanged(null, null); AddBindingDataDoctor(); }
private void removeSorted_Click(object sender, EventArgs e) { DoctorSource.RemoveSort(); }