Beispiel #1
0
        /// <inheritdoc/>
        public void Dispose()
        {
            if (this.differenceViewer != null)
            {
                this.differenceViewer.Close();
                this.differenceViewer = null;
            }

            if (ApplyFixesInDocument != null)
            {
                foreach (Delegate x in ApplyFixesInDocument?.GetInvocationList())
                {
                    ApplyFixesInDocument -= (EventHandler <ApplyFixEventArgs>)x;
                }

                System.Diagnostics.Debug.Assert(ApplyFixesInDocument == null, "Should not have hooked events.");
            }
        }
Beispiel #2
0
 private void ApplyInDocument_Click(object sender, RoutedEventArgs e)
 {
     this.StackPanelContent.Children.Clear();
     ApplyFixesInDocument?.Invoke(this, new ApplyFixEventArgs(FixScope.Document, this.sarifErrorListItem));
 }