Пример #1
0
        private void SetZoomSpeed(int zoomSpeed)
        {
            if (zoomSpeed == ZoomSpeed)
            {
                return;
            }
            bool?zoomDirection = zoomSpeed == 0 ? default(bool?) : zoomSpeed > 0;

            controller?.ContinuousZoom(zoomDirection, AbsSpeed(zoomSpeed), default);
            ZoomSpeed = zoomSpeed;
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(ZoomSpeed)));
        }
Пример #2
0
 private void ContinuousZoomIn(object sender, MouseButtonEventArgs e) => controller?.ContinuousZoom(true, (byte)zoomSpeed.Value, default);