public void GenerateScale() { _view.TimescalePanel.Children.Clear(); var timeCollection = TimeRangeDivider.Divide(new TimeRange() { StartDateTime = _startDateTime, EndDateTime = GetEndDateTime() }); TimelineGenerator gen = new TimelineGenerator(null, timeCollection, ScaleWidth, (double)0, CanvasHeight); gen.GenerateScale(_view.TimescalePanel); }
public void GenerateBorders() { _view.TimelinePanel.Children.Clear(); ResetDataCanvasWidth(); var timeCollection = TimeRangeDivider.Divide(new TimeRange() { StartDateTime = _startDateTime, EndDateTime = GetEndDateTime() }); TimelineGenerator gen = new TimelineGenerator(_dataSource, timeCollection, DataCellWidth, (double)0, CanvasHeight); gen.GenerateBorders(_view.TimelinePanel); gen.GenerateEvents(_view.TimelinePanel, _eventModelManager); }