GenerateScale() публичный Метод

public GenerateScale ( System.Windows.Controls.Canvas canvas ) : void
canvas System.Windows.Controls.Canvas
Результат void
Пример #1
0
        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);
        }
Пример #2
0
        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);
        }