public KeyboardMonitor(AppStateHandler appStateHandler, IUserSettings userSettings, ColorsHistoryWindowHelper colorsHistoryWindowHelper, ZoomWindowHelper zoomWindowHelper) { _appStateHandler = appStateHandler; _userSettings = userSettings; _colorsHistoryWindowHelper = colorsHistoryWindowHelper; _zoomWindowHelper = zoomWindowHelper; _userSettings.ActivationShortcut.PropertyChanged += ActivationShortcut_PropertyChanged; SetActivationKeys(); }
private void CircularMenuItem_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { ClipboardHelper.CopyIntoClipboard(CentralItem.ContentText); if (_colorsHistoryWindowHelper == null) { _colorsHistoryWindowHelper = Bootstrapper.Container.GetExportedValue <ColorsHistoryWindowHelper>(); } _colorsHistoryWindowHelper.HideColorsHistory(); }