예제 #1
0
        private void bGWorkerGetData_DoWork(object sender, DoWorkEventArgs e)
        {
            PartsDB          partsDB   = new PartsDB();
            RequestsDB       requestDB = new RequestsDB();
            List <DataTable> tables    = new List <DataTable>();

            tables.Add(partsDB.GetCleanTable());
            tables.Add(requestDB.GetRequestsTable());
            tables.Add(requestDB.GetContactTable());
            e.Result = tables;
        }
예제 #2
0
파일: MainForm.cs 프로젝트: RyanPrindle/FEI
        private void bGWorkerFillTables_DoWork(object sender, DoWorkEventArgs e)
        {
            RequestsDB       cleaningRequestsDB = new RequestsDB();
            PartsDB          partDB             = new PartsDB();
            DataTable        requestTable       = cleaningRequestsDB.GetRequestsTable();
            DataTable        contactTable       = cleaningRequestsDB.GetContactTable();
            List <DataTable> tables             = new List <DataTable>();

            tables.Add(requestTable);
            tables.Add(contactTable);
            e.Result = tables;
        }