public CodeIssueOptionsDialog (CodeIssueProvider inpector) { this.inpector = inpector; Build (); HasSeparator = false; labelInspectionTitle.Text = inpector.Title; var s = inpector.GetSeverity (); radiobuttonHide.Active = s == Severity.None; radiobuttonError.Active = s == Severity.Error; radiobuttonWarning.Active = s == Severity.Warning; radiobuttonHint.Active = s == Severity.Hint; radiobuttonSuggestion.Active = s == Severity.Suggestion; buttonOk.Clicked += HandleClicked; buttonCancel.Clicked += (sender, e) => Destroy (); Response += (o, args) => { if (args.ResponseId == ResponseType.Close) Destroy (); }; }
public CodeIssueOptionsDialog(CodeIssueProvider inpector) { this.inpector = inpector; Build(); HasSeparator = false; labelInspectionTitle.Text = inpector.Title; var s = inpector.GetSeverity(); radiobuttonHide.Active = s == Severity.None; radiobuttonError.Active = s == Severity.Error; radiobuttonWarning.Active = s == Severity.Warning; radiobuttonHint.Active = s == Severity.Hint; radiobuttonSuggestion.Active = s == Severity.Suggestion; buttonOk.Clicked += HandleClicked; buttonCancel.Clicked += (sender, e) => Destroy(); Response += (o, args) => { if (args.ResponseId == ResponseType.Close) { Destroy(); } }; }
void AddIssue(ProjectFile file, CodeIssueProvider provider, CodeIssue r) { var issue = new IssueSummary { IssueDescription = r.Description, Region = r.Region, ProviderTitle = provider.Title, ProviderDescription = provider.Description, ProviderCategory = provider.Category, Severity = provider.GetSeverity(), IssueMarker = provider.IssueMarker, File = file, Project = file.Project, InspectorIdString = r.InspectorIdString }; issue.Actions = r.Actions.Select(a => new ActionSummary { Batchable = a.SupportsBatchRunning, SiblingKey = a.SiblingKey, Title = a.Title, Region = a.DocumentRegion, IssueSummary = issue }).ToList(); IssueSink.AddIssue(issue); }
void AddIssue (ProjectFile file, CodeIssueProvider provider, CodeIssue r) { var issue = new IssueSummary { IssueDescription = r.Description, Region = r.Region, ProviderTitle = provider.Title, ProviderDescription = provider.Description, ProviderCategory = provider.Category, Severity = provider.GetSeverity (), IssueMarker = provider.IssueMarker, File = file, Project = file.Project, InspectorIdString = r.InspectorIdString }; issue.Actions = r.Actions.Select (a => new ActionSummary { Batchable = a.SupportsBatchRunning, SiblingKey = a.SiblingKey, Title = a.Title, Region = a.DocumentRegion, IssueSummary = issue }).ToList (); IssueSink.AddIssue (issue); }