示例#1
0
        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;
 }
示例#3
0
        HourlyReportPanel LoadHourlyReport(string fileName)
        {
            HourlyReportPanel reportPanel = null;

            if (TwServices.IsLog(fileName))
            {
                reportPanel = LoadLog(fileName);
            }
            else if (TwServices.IsAnalysis(fileName))
            {
                reportPanel = LoadAnalysis(fileName);
            }

            return(reportPanel);
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }