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

            tables.Add(requestDB.GetGunTable());
            tables.Add(requestDB.GetRequestsTable());
            tables.Add(requestDB.GetContactTable());
            e.Result = tables;
        }
Example #2
0
        private void bGWDetails_DoWork(object sender, DoWorkEventArgs e)
        {
            int              requestId = (int)e.Argument;
            RequestsDB       reqDB     = new RequestsDB();
            DataTable        reqTable  = reqDB.GetRequest(requestID);
            DataTable        gunTable  = reqDB.GetGunTable();
            List <DataTable> tables    = new List <DataTable>();

            tables.Add(reqTable);
            tables.Add(gunTable);
            e.Result = tables;
        }