Ejemplo n.º 1
0
 public KeyboardMonitor(AppStateHandler appStateHandler, IUserSettings userSettings, ColorsHistoryWindowHelper colorsHistoryWindowHelper, ZoomWindowHelper zoomWindowHelper)
 {
     _appStateHandler           = appStateHandler;
     _userSettings              = userSettings;
     _colorsHistoryWindowHelper = colorsHistoryWindowHelper;
     _zoomWindowHelper          = zoomWindowHelper;
     _userSettings.ActivationShortcut.PropertyChanged += ActivationShortcut_PropertyChanged;
     SetActivationKeys();
 }
Ejemplo n.º 2
0
 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();
 }