public void Initialize() { Title = "Daily and Hourly Report - " + Analysis.KeyCode; HourlyReportPanel.Analysis = Analysis; HourlyReportPanel.Initialize(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.HourlyReportPanel = ((TraceWizard.TwApp.HourlyReportPanel)(target)); return; } this._contentLoaded = true; }
HourlyReportPanel LoadHourlyReport(string fileName) { HourlyReportPanel reportPanel = null; if (TwServices.IsLog(fileName)) { reportPanel = LoadLog(fileName); } else if (TwServices.IsAnalysis(fileName)) { reportPanel = LoadAnalysis(fileName); } return(reportPanel); }
HourlyReportPanel LoadLog(string fileName) { Mouse.OverrideCursor = Cursors.Wait; Log log = TwServices.CreateLog(fileName); log.UpdateHourlyTotals(); log.UpdateDailyTotals(); var reportPanel = new HourlyReportPanel(); reportPanel.Analysis = new Analysis(log); reportPanel.Initialize(); Mouse.OverrideCursor = null; return(reportPanel); }
HourlyReportPanel LoadAnalysis(string fileName) { Mouse.OverrideCursor = Cursors.Wait; Analysis analysis = TwServices.CreateAnalysis(fileName); analysis.UpdateFixtureSummaries(); analysis.UpdateHourlyTotals(); analysis.UpdateDailyTotals(); var reportPanel = new HourlyReportPanel(); reportPanel.Analysis = analysis; reportPanel.Initialize(); Mouse.OverrideCursor = null; return(reportPanel); }