示例#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
        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;
        }