예제 #1
0
 public void Setup()
 {
     data = Enumerable.Range(1, N).Select(t => new DensityInfo
     {
         EventsCount = _random.Next(125),
         Start       = t * 10000 + _random.Next(1000),
         Stop        = (t + 1) * 10000 - _random.Next(5000)
     }).ToArray();
     _currentStart  = data[0].Start;
     _currentLength = data[data.Length - 1].Stop - _currentStart;
     _chartRender   = new ChartRender();
 }
 public EventDensityViewModel(IScaler scaler,
                              IDensityApi densityApi,
                              ILogger logger,
                              ITimeLineRender timeLineRender,
                              IChartRender chartRender)
 {
     _scaler          = scaler;
     _densityApi      = densityApi;
     _logger          = logger;
     _timeLineRender  = timeLineRender;
     _chartRender     = chartRender;
     MoveLeftCommand  = new DelegateCommand(MoveLeft);
     MoveRightCommand = new DelegateCommand(MoveRight);
     RecalculateWholeImage();
 }