private void MostVulerableIssuesMenuItem_Click(object sender, RoutedEventArgs e) { ReportMostVulnerableIssues reportMostVulnerableIssues = new ReportMostVulnerableIssues(); reportMostVulnerableIssues.ShowDialog(); if (reportMostVulnerableIssues.DialogResult.Value == true) { LoaderHelper.LoaderStart(); ProcessStatusBar.Visibility = Visibility.Visible; ProcessStatusText.Content = "Erstelle Report: Meisten Sicherheitslücken"; if (reportMostVulnerableIssues.DataFilter == null) { DataFilter = new DataFilter(); } else { DataFilter = reportMostVulnerableIssues.DataFilter; } _progressBarValue = 25; (new Thread(() => { var issues = dataController.GetMostSecurityIssues(_connection.BaseURL, _connection.Token, DataFilter); _progressBarValue = 25; ReportController.CreateVulnReport(reportMostVulnerableIssues.DataType, issues); _progressBarValue = 100; })).Start(); ProcessStatusText.Content = "Beendet"; } }