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

            RenderDataSet(args.Result);
            asyncQry = null;
        }
Example #2
0
        public void ExecuteAsync(ConnectionParams cp, string commandText)
        {
            if (IsExecutingAsync)
            {
                throw new Exception("Query is already executing!");
            }

            ClearAll();
            asyncQry = new AsyncQuery(cp.ConnectionString, commandText);
            asyncQry.AfterExecutionCompleted += new ExecutionCompletedDelegate(qry_AfterExecutionCompleted);
            asyncQry.Execute();
        }