コード例 #1
0
        private void ShowZoomInfo()
        {
            _timer.Stop();
            TimeUnit timeUnit = TimeUnitHelpers.GetFloorTimeUnit(SegmentSize);
            double   segmentSizeInTimeUnits = SegmentSize / (double)timeUnit.GetTimeUnitDuration();

            ZoomInfoLabel.Content    = $"Segment size: {SegmentSize} ({segmentSizeInTimeUnits, 0:0.##}{timeUnit.GetTimeUnitAsString()})";
            ZoomInfoPanel.Visibility = Visibility.Visible;
            _timer.Start();
        }