private void OnQueryCompleted(QueryStatusEventArgs args) { if (this.QueryCompleted != null) { this.QueryCompleted(this, args); } }
/// <summary> /// Determines if the manual context evaluation action is enabled. /// </summary> /// <param name="ea">An <see cref="DevExpress.CodeRush.Core.QueryStatusEventArgs" /> that contains the event data.</param> private void EvaluateContextAction_QueryStatus(QueryStatusEventArgs ea) { if (!this.ToolWindowEnabled) { ea.Status = EnvDTE.vsCommandStatus.vsCommandStatusUnsupported; } else { ea.Status = EnvDTE.vsCommandStatus.vsCommandStatusEnabled | EnvDTE.vsCommandStatus.vsCommandStatusSupported; } }
private void _client_QueryCompleted(object sender, QueryStatusEventArgs e) { lock (this._executionLock) { if (sender != this._client) { return; } if (e.ExecutionComplete) { this._queryWatch.Stop(); } this._queryStarting = false; if (e.AppDomainRecycleSuggested) { this.PolluteCachedDomain(false); } } this.OnQueryCompleted(e); if (e.DataContextRefreshRequired && this._querySnapshot.Repository.IsEquivalent(base.Repository)) { DataContextManager.RefreshDataContextInfo(base.Repository, SchemaChangeTestMode.TestAndFailNegative); } }