private void bgRefreshing_DoWork(object sender, DoWorkEventArgs e) { RefreshArgs args = (RefreshArgs)e.Argument; e.Result = MaterialPermit.LoadList(args.Database, args.Unit, DateTime.MinValue, DateTime.MaxValue, args.User); }
private void bgRefreshMaterialDocumentList_DoWork(object sender, DoWorkEventArgs e) { RefreshParams args = (RefreshParams)e.Argument; Database database = args.database; RefreshResult result = new RefreshResult(); result.List = MaterialPermit.LoadList((EntryControlDatabase)database, args.dateStart, args.dateFinish); e.Result = result; }
private void bckRefresh_DoWork(object sender, DoWorkEventArgs e) { RefreshArgs args = (RefreshArgs)e.Argument; e.Result = MaterialPermit.LoadList(args.Database, args.DateFrom, args.DateTo); }