/// <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."); } }
private void ApplyInDocument_Click(object sender, RoutedEventArgs e) { this.StackPanelContent.Children.Clear(); ApplyFixesInDocument?.Invoke(this, new ApplyFixEventArgs(FixScope.Document, this.sarifErrorListItem)); }