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); }
static public void TipsExecuted(object sender, ExecutedRoutedEventArgs e) { var tipsVersion = e.Parameter; TwFile.Launch(TwEnvironment.TwTipsBase + tipsVersion + "." + TwEnvironment.TwTipsExtension); }
static public void CommandsHelpExecuted(object sender, ExecutedRoutedEventArgs e) { TwFile.Launch(TwEnvironment.TwHelpCommands); }
static public void InstallationNotesExecuted(object sender, ExecutedRoutedEventArgs e) { TwFile.Launch(TwEnvironment.TwReadMe); }
static public void ReleaseNotesExecuted(object sender, ExecutedRoutedEventArgs e) { // throw new Exception("Testing simplified bug reporter");} TwFile.Launch(TwEnvironment.TwReleaseNotes); }
static void ShortcutsHelpExecuted() { TwFile.Launch(TwEnvironment.TwHelpShortcuts); }
void HyperlinkAbout_RequestNavigate(object sender, RequestNavigateEventArgs e) { TwFile.Launch(e.Uri.AbsoluteUri); }