Esempio n. 1
0
        private void ReportNachTag_Status_Click_1(object sender, RoutedEventArgs e)
        {
            ReportPatchesByDate reportPatchStatus = new ReportPatchesByDate();

            reportPatchStatus.ShowDialog();

            if (reportPatchStatus.DialogResult.Value == true)
            {
                LoaderHelper.LoaderStart();

                ProcessStatusBar.Visibility = Visibility.Visible;
                ProcessStatusText.Content   = "Erstelle Report: Report Patches nach Tag";

                if (reportPatchStatus.DataFilter == null)
                {
                    DataFilter = new DataFilter();
                }
                else
                {
                    DataFilter = reportPatchStatus.DataFilter;
                }

                _progressBarValue = 25;

                (new Thread(() => {
                    var issues = dataController.GetPatchDataByDate(_connection.BaseURL, _connection.Token, DataFilter);
                    _progressBarValue = 25;
                    ReportController.CreateReportByDateReport(reportPatchStatus.DataType, issues);
                    _progressBarValue = 100;
                })).Start();
                ProcessStatusText.Content = "Beendet";
            }
        }