示例#1
0
        void ReportLow() {

            var exporter = new ProjectReportExporter();
            exporter.DataSource = aggregateFile;
            exporter.Attributes = reportSelector.Attributes;

            this.Total = analysisFiles.Count;

            foreach (string analysisFile in analysisFiles) {
                if (this._isCancelationPending == true) break;

                ++this.Current;
                this.KeyCode = GetKeyCode(analysisFile);

                Analysis analysis = Services.TwServices.CreateAnalysis(analysisFile);
                Events eventsFiltered = new Events();

                List<FixtureClass> fixtureClassesToExclude = new List<FixtureClass>();

                if (reportSelector.Attributes.IsExcludeNoiseEnabled)
                    fixtureClassesToExclude.Add(FixtureClasses.Noise);

                if (reportSelector.Attributes.IsExcludeDuplicateEnabled)
                    fixtureClassesToExclude.Add(FixtureClasses.Duplicate);

                List<FixtureClass> fixtureClassesOutdoor = new List<FixtureClass>();
                fixtureClassesOutdoor.Add(FixtureClasses.Irrigation);

                if (reportSelector.Attributes.IsOutdoorPoolEnabled)
                    fixtureClassesOutdoor.Add(FixtureClasses.Pool);

                if (reportSelector.Attributes.IsOutdoorCoolerEnabled)
                    fixtureClassesOutdoor.Add(FixtureClasses.Cooler);

                bool partialDays = reportSelector.Attributes.IsPartialDaysEnabled;

                analysis.FilterEvents(eventsFiltered, partialDays, fixtureClassesToExclude);

                var projectReportProperties = (new ProjectReportCalculator()).CalculateProjectReportProperties(eventsFiltered, fixtureClassesOutdoor);
                exporter.Properties = projectReportProperties;
                exporter.KeyCode = analysis.KeyCode;

                exporter.Export();
            }
            TwFile.Launch(aggregateFile);
        }
示例#2
0
        static public void TipsExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            var tipsVersion = e.Parameter;

            TwFile.Launch(TwEnvironment.TwTipsBase + tipsVersion + "." + TwEnvironment.TwTipsExtension);
        }
示例#3
0
 static public void CommandsHelpExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     TwFile.Launch(TwEnvironment.TwHelpCommands);
 }
示例#4
0
 static public void InstallationNotesExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     TwFile.Launch(TwEnvironment.TwReadMe);
 }
示例#5
0
        static public void ReleaseNotesExecuted(object sender, ExecutedRoutedEventArgs e)
        {
//            throw new Exception("Testing simplified bug reporter");}
            TwFile.Launch(TwEnvironment.TwReleaseNotes);
        }
示例#6
0
 static void ShortcutsHelpExecuted()
 {
     TwFile.Launch(TwEnvironment.TwHelpShortcuts);
 }
示例#7
0
 void HyperlinkAbout_RequestNavigate(object sender, RequestNavigateEventArgs e)
 {
     TwFile.Launch(e.Uri.AbsoluteUri);
 }