コード例 #1
0
        void qry_AfterExecutionCompleted(ExecutionCompletedEventArgs args)
        {
            if (args.Cancelled | args.Error != null)
            {
                return;
            }

            RenderDataSet(args.Result);
            asyncQry = null;
        }
コード例 #2
0
        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);
            }
        }