public LeanKitCumlativeFlowPresenter(InformationRadiatorItemConfiguration configuration, PresenterCommon.IDayUpdateMonitor updateMonitor) { NumberOfDaysHistory = 10; _configurationParser = new LeanKitConfigurationParser(); _configurationParser.UnknownConfigurationParameter += _configurationParser_UnknownConfigurationParameter; _configurationParser.ParseConfiguration(configuration); _history = LeanKitFactory.Instance.CreateLanePointsHistory(_configurationParser.HostName, _configurationParser.UserName, _configurationParser.Password, _configurationParser.BoardId, _configurationParser.IgnoredLanes); updateMonitor.DayChanged += updateMonitor_DayChanged; }
public LeanKitTickerPresenter(InformationRadiatorItemConfiguration configuration) { _lock = new object(); _displayUpdateInterval = 10; _fetchUpdateInterval = 5 * 60; _configurationParser = new LeanKitConfigurationParser(); _configurationParser.UnknownConfigurationParameter += _configurationParser_UnknownConfigurationParameter; _configurationParser.ParseConfiguration(configuration); _currentMessage = 0; _messageStartTicks = 0; _ticks = 0; _ticker = LeanKitFactory.Instance.CreateTicker(_configurationParser.HostName, _configurationParser.UserName, _configurationParser.Password, _configurationParser.BoardId, _laneId); _timer = LeanKitFactory.Instance.CreateTimer(1000); _timer.Tick += _timer_Tick; }