コード例 #1
0
        public PreviousPickupChartJob( IKeepTheTime timekeeper, IHistorian historian )
        {
            Name = "Previous Pickup Chart";
             TimeKeeper = timekeeper;
             Logger = LogManager.GetCurrentClassLogger();
             Historian = historian;

             Week = Int32.Parse( TimeKeeper.PreviousWeek() );

             Report = new PickupChart(
            TimeKeeper.CurrentSeason( DateTime.Now ), Week );
        }
コード例 #2
0
 public PickupChartJob( IKeepTheTime timekeeper, bool previous = false )
 {
     Name = "Pickup Chart";
      TimeKeeper = timekeeper;
      Logger = LogManager.GetCurrentClassLogger();
      if ( previous )
     Week = Int32.Parse( TimeKeeper.PreviousWeek() );
      else
     Week = TimeKeeper.CurrentWeek( DateTime.Now );
      if (Week == 0) Week = 1;  //  in preseason lets look ahead to the first game
      Report = new PickupChart(
     TimeKeeper.CurrentSeason( DateTime.Now ), Week );
 }