Ejemplo n.º 1
0
        public HtmlRenderer(string outputDirectory, StaffHistory history) : this(outputDirectory)
        {
            m_TimeStamp = DateTime.UtcNow;

            m_Objects = new ObjectCollection();

            history.Render(m_Objects);
        }
Ejemplo n.º 2
0
        public static void Initialize()
        {
            if (!Enabled)
            {
                return;
            }
            _StatsHistory = new SnapshotHistory();
            _StatsHistory.Load();
            StaffHistory = new StaffHistory();
            StaffHistory.Load();
            var now       = DateTime.UtcNow;
            var date      = now.Date;
            var timeOfDay = now.TimeOfDay;

            _GenerateTime = date + TimeSpan.FromHours(Math.Ceiling(timeOfDay.TotalHours));
            Timer.DelayCall(TimeSpan.FromMinutes(0.5), TimeSpan.FromMinutes(0.5), new TimerCallback(CheckRegenerate));
        }
Ejemplo n.º 3
0
 public int GetPageCount(PageResolution res, DateTime min, DateTime max)
 {
     return(StaffHistory.GetPageCount(m_Pages, res, min, max));
 }