void qry_AfterExecutionCompleted(ExecutionCompletedEventArgs args) { if (args.Cancelled | args.Error != null) { return; } RenderDataSet(args.Result); asyncQry = null; }
private void OnQueryExecutionCompleted(object sender, RunWorkerCompletedEventArgs e) { _isExecuting = false; if (_afterExecutionCompleted != null) { ExecutionCompletedEventArgs args = new ExecutionCompletedEventArgs(); args.Cancelled = e.Cancelled; args.Error = e.Error; if (!args.Cancelled && e.Error == null) { args.Result = e.Result as DataSet; } _afterExecutionCompleted(args); } }