コード例 #1
0
        private void LoadApplicationSettings()
        {
            this._configurationStorage.Load();

            this.View.MinimizeToTray = this._configuration.MinimizeToTray;

            this.View.ThumbnailOpacity = this._configuration.ThumbnailOpacity;

            this.View.EnableClientLayoutTracking      = this._configuration.EnableClientLayoutTracking;
            this.View.HideActiveClientThumbnail       = this._configuration.HideActiveClientThumbnail;
            this.View.ShowThumbnailsAlwaysOnTop       = this._configuration.ShowThumbnailsAlwaysOnTop;
            this.View.HideThumbnailsOnLostFocus       = this._configuration.HideThumbnailsOnLostFocus;
            this.View.EnablePerClientThumbnailLayouts = this._configuration.EnablePerClientThumbnailLayouts;

            this.View.SetThumbnailSizeLimitations(this._configuration.ThumbnailMinimumSize, this._configuration.ThumbnailMaximumSize);
            this.View.ThumbnailSize = this._configuration.ThumbnailSize;

            this.View.EnableThumbnailZoom = this._configuration.ThumbnailZoomEnabled;
            this.View.ThumbnailZoomFactor = this._configuration.ThumbnailZoomFactor;
            this.View.ThumbnailZoomAnchor = ViewZoomAnchorConverter.Convert(this._configuration.ThumbnailZoomAnchor);

            this.View.ShowThumbnailOverlays       = this._configuration.ShowThumbnailOverlays;
            this.View.ShowThumbnailFrames         = this._configuration.ShowThumbnailFrames;
            this.View.EnableActiveClientHighlight = this._configuration.EnableActiveClientHighlight;
            this.View.ActiveClientHighlightColor  = this._configuration.ActiveClientHighlightColor;
        }
コード例 #2
0
        private void SaveApplicationSettings()
        {
            this._configuration.MinimizeToTray = this.View.MinimizeToTray;

            this._configuration.ThumbnailOpacity = (float)this.View.ThumbnailOpacity;

            this._configuration.EnableClientLayoutTracking      = this.View.EnableClientLayoutTracking;
            this._configuration.HideActiveClientThumbnail       = this.View.HideActiveClientThumbnail;
            this._configuration.ShowThumbnailsAlwaysOnTop       = this.View.ShowThumbnailsAlwaysOnTop;
            this._configuration.HideThumbnailsOnLostFocus       = this.View.HideThumbnailsOnLostFocus;
            this._configuration.EnablePerClientThumbnailLayouts = this.View.EnablePerClientThumbnailLayouts;

            this._configuration.ThumbnailSize = this.View.ThumbnailSize;

            this._configuration.ThumbnailZoomEnabled = this.View.EnableThumbnailZoom;
            this._configuration.ThumbnailZoomFactor  = this.View.ThumbnailZoomFactor;
            this._configuration.ThumbnailZoomAnchor  = ViewZoomAnchorConverter.Convert(this.View.ThumbnailZoomAnchor);

            this._configuration.ShowThumbnailOverlays       = this.View.ShowThumbnailOverlays;
            this._configuration.ShowThumbnailFrames         = this.View.ShowThumbnailFrames;
            this._configuration.EnableActiveClientHighlight = this.View.EnableActiveClientHighlight;
            this._configuration.ActiveClientHighlightColor  = this.View.ActiveClientHighlightColor;

            this._configurationStorage.Save();

            this.View.RefreshZoomSettings();

            this._thumbnailManager.SetupThumbnailFrames();
        }
コード例 #3
0
        private void ThumbnailZoomIn(IThumbnailView view)
        {
            this.DisableViewEvents();

            view.ZoomIn(ViewZoomAnchorConverter.Convert(this._configuration.ThumbnailZoomAnchor), this._configuration.ThumbnailZoomFactor);
            view.Refresh(false);

            this.EnableViewEvents();
        }