示例#1
0
        public Analyst(ProjectManager clerk, ShadowMaker shadowMaker, AsyncExceptionHandler exceptionHandler)
        {
            this.aex = exceptionHandler;

            this.shadowMaker = shadowMaker;

            this.clerk = clerk;
            this.Host  = new ReportBindingSource(shadowMaker, exceptionHandler, clerk);

            //this.Host.DrawModel += new EventHandler<EventArgs<UserControl, bool>>(Host_DrawModel);
            this.Host.DrawPoints             += new EventHandler <EventArgs <UserControl> >(Host_DrawPoints);
            this.Host.DrawCounters           += new EventHandler <EventArgs <UserControl> >(Host_DrawCounters);
            this.Host.GenerateCountersReport += new EventHandler <EventArgs <DataTableEx, Dispatcher> >(Host_GenerateCountersReport);
            this.Host.GenerateTrTimesReport  += new EventHandler <EventArgs <DataTableEx, Dispatcher> >(Host_GenerateTrTimesReport);

            this.Host.DrawSections += new EventHandler <EventArgs <UserControl> >(Host_DrawSections);
            this.Host.DrawTrTimes  += new EventHandler <EventArgs <UserControl> >(Host_DrawTrTimes);
        }
示例#2
0
        public Analyst(ProjectManager clerk, ShadowMaker shadowMaker, AsyncExceptionHandler exceptionHandler)
        {
            this.aex = exceptionHandler;

            this.shadowMaker = shadowMaker;

            this.clerk = clerk;
            this.Host = new ReportBindingSource(shadowMaker, exceptionHandler, clerk);

            //this.Host.DrawModel += new EventHandler<EventArgs<UserControl, bool>>(Host_DrawModel);
            this.Host.DrawPoints += new EventHandler<EventArgs<UserControl>>(Host_DrawPoints);
            this.Host.DrawCounters += new EventHandler<EventArgs<UserControl>>(Host_DrawCounters);
            this.Host.GenerateCountersReport += new EventHandler<EventArgs<DataTableEx, Dispatcher>>(Host_GenerateCountersReport);
            this.Host.GenerateTrTimesReport += new EventHandler<EventArgs<DataTableEx, Dispatcher>>(Host_GenerateTrTimesReport);

            this.Host.DrawSections += new EventHandler<EventArgs<UserControl>>(Host_DrawSections);
            this.Host.DrawTrTimes += new EventHandler<EventArgs<UserControl>>(Host_DrawTrTimes);
        }