Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Navigator"/> class.
        /// </summary>
        public Navigator()
        {
            this.selectionRange         = new NavigatorRange();
            this.dataRange              = new NavigatorRange();
            this.viewRange              = new NavigatorRange();
            this.cursor                 = DateTime.MinValue;
            this.navigationMode         = NavigationMode.Playback;
            this.zoomToSelectionPadding = 0.1;

            this.dataRange.SetRange(DateTime.MinValue, TimeSpan.FromSeconds(60));
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Navigator"/> class.
        /// </summary>
        public Navigator()
        {
            DateTime now = DateTime.UtcNow;

            this.selectionRange         = new NavigatorRange(now.AddSeconds(-60), now);
            this.dataRange              = new NavigatorRange(now.AddSeconds(-60), now);
            this.viewRange              = new NavigatorRange(now.AddSeconds(-60), now);
            this.cursor                 = now.AddSeconds(-60);
            this.zoomToSelectionPadding = 0.1;

            this.SelectionRange.RangeChanged += this.SelectionRange_RangeChanged;
            this.viewRange.PropertyChanged   += this.ViewRange_PropertyChanged;
        }