private void LoadDate() { //로드 때 갖고오지 못하게 하기 cmbMachines.SelectedIndexChanged -= CmbMachines_SelectedIndexChanged; cmbEmployees.SelectedIndexChanged -= CmbEmployees_SelectedIndexChanged; // 직원 콤보 로드 EmployeesService eService = new EmployeesService(); BindingList <EmployeeDTO> ebindlist = new BindingList <EmployeeDTO>(eService.SelectAll().Where((elem) => (elem.Authority | 0b0001) == 0b0001).ToList()); eService.Dispose(); cmbEmployees.DataSource = ebindlist; // 기계 콤보 로드 MachineService mService = new MachineService(); BindingList <MachineDTO> mbindlist = new BindingList <MachineDTO>(mService.SelectAll()); mService.Dispose(); cmbMachines.DataSource = mbindlist; // 이벤트 재활성화 cmbMachines.SelectedIndexChanged += CmbMachines_SelectedIndexChanged; cmbEmployees.SelectedIndexChanged += CmbEmployees_SelectedIndexChanged; // 데이터그리드뷰 로드 LoadDgvs(); }