public ZoomWindowHelper(IZoomViewModel zoomViewModel, AppStateHandler appStateHandler, IThrottledActionInvoker throttledActionInvoker) { _zoomViewModel = zoomViewModel; _appStateHandler = appStateHandler; _throttledActionInvoker = throttledActionInvoker; _appStateHandler.AppClosed += AppStateHandler_AppClosed; _appStateHandler.AppHidden += AppStateHandler_AppClosed; }
public void Initialize(string directoryPath, string selectedItem) { NoImagesMessageVisible = false; _selectedImageThrottledActionInvoker = _throttledActionInvokerFactory.CreateThrottledActionInvoker(); _selectedImageLowResThrottledActionInvoker = _throttledActionInvokerFactory.CreateThrottledActionInvoker(); _slideshowScheduledActionInvoker = _throttledActionInvokerFactory.CreateThrottledActionInvoker(); _slideshowDelayInSeconds = _userSettings.SlideshowDuration.Value; LoadImageFiles(directoryPath, selectedItem); if (Images.Count == 0) { NoImagesMessageVisible = true; } }
public ColorFormatControl() { InitializeComponent(); _actionInvoker = Bootstrapper.Container.GetExportedValue <IThrottledActionInvoker>(); CopyToClipboardButton.Click += CopyToClipboardButton_Click; }