コード例 #1
0
        private void RaiseAnalyzersChangedIfBindingChanged(bool?isBindingCleared = null)
        {
            var newBindingConfiguration = configurationProvider.GetConfiguration();

            if (!CurrentConfiguration.Equals(newBindingConfiguration))
            {
                CurrentConfiguration = newBindingConfiguration;
                SolutionBindingChanged?.Invoke(this, new ActiveSolutionBindingEventArgs(newBindingConfiguration));
            }
            else if (isBindingCleared == false)
            {
                SolutionBindingUpdated?.Invoke(this, EventArgs.Empty);
            }

            SetBoundSolutionUIContext();
        }
コード例 #2
0
 public Delegate[] GetSolutionBindingChangedInvocationList()
 {
     return(SolutionBindingChanged?.GetInvocationList());
 }
コード例 #3
0
 public void SimulateSolutionBindingChanged(ActiveSolutionBindingEventArgs binding)
 {
     SolutionBindingChanged?.Invoke(this, binding);
 }