void qry_AfterExecutionCompleted(ExecutionCompletedEventArgs args) { if (args.Cancelled | args.Error != null) { return; } RenderDataSet(args.Result); asyncQry = null; }
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(); }