public AttendanceWindow(SectionModel section) { this.section = section; threadLoad = new BackgroundWorker(); threadLoad.WorkerSupportsCancellation = true; threadLoad.DoWork += new DoWorkEventHandler(threadLoad_DoWork); threadLoad.RunWorkerCompleted += new RunWorkerCompletedEventHandler(threadLoad_RunWorkerCompleted); dt = new DataTable(); threadShow = new BackgroundWorker(); threadShow.DoWork += new DoWorkEventHandler(threadShow_DoWork); threadShow.RunWorkerCompleted += new RunWorkerCompletedEventHandler(threadShow_RunWorkerCompleted); dtPrint = new AttendanceDataSet().Tables["AttendanceTable"]; leaveTypeList = LeaveTypeModel.Create(); holidayList = new List <HolidayModel>(); InitializeComponent(); }
public LineIncentiveSummaryWindow(SectionModel section) { InitializeComponent(); this.section = section; threadLoad = new BackgroundWorker(); threadLoad.WorkerSupportsCancellation = true; threadLoad.RunWorkerCompleted += new RunWorkerCompletedEventHandler(threadLoad_RunWorkerCompleted); threadLoad.DoWork += new DoWorkEventHandler(threadLoad_DoWork); lineList = new List <LineModel>(); personalList = new List <PersonalModel>(); threadShow = new BackgroundWorker(); threadShow.RunWorkerCompleted += new RunWorkerCompletedEventHandler(threadShow_RunWorkerCompleted); threadShow.DoWork += new DoWorkEventHandler(threadShow_DoWork); leaveTypeList = LeaveTypeModel.Create(); minusIncentiveList = MinusIncentiveModel.Create(); performanceDetailList = new List <LinePerformanceDetailModel>(); }
public WorkerLeaveWindow() { workerLeaveViewList = new ObservableCollection <WorkerLeaveViewModel>(); threadSearch = new BackgroundWorker(); threadSearch.DoWork += new DoWorkEventHandler(threadSearch_DoWork); threadSearch.RunWorkerCompleted += new RunWorkerCompletedEventHandler(threadSearch_RunWorkerCompleted); threadInsert = new BackgroundWorker(); threadInsert.DoWork += new DoWorkEventHandler(threadInsert_DoWork); threadInsert.RunWorkerCompleted += new RunWorkerCompletedEventHandler(threadInsert_RunWorkerCompleted); threadDelete = new BackgroundWorker(); threadDelete.DoWork += new DoWorkEventHandler(threadDelete_DoWork); threadDelete.RunWorkerCompleted += new RunWorkerCompletedEventHandler(threadDelete_RunWorkerCompleted); workerLeaveId = 0; workerLeaveView = new WorkerLeaveViewModel(); leaveTypeList = LeaveTypeModel.Create(); InitializeComponent(); }