示例#1
0
        public ShellHotKeyService(ICairoApplication cairoApplication, DesktopManager desktopManager)
        {
            _cairoApplication = cairoApplication;
            _desktopManager   = desktopManager;

            ServiceStartTask = new Task(RegisterSystemHotkeys);
        }
        public TaskbarWindowService(ICairoApplication cairoApplication, ShellManagerService shellManagerService, WindowManager windowManager, DesktopManager desktopManager, AppGrabberService appGrabber) : base(cairoApplication, shellManagerService, windowManager)
        {
            _appGrabber     = appGrabber;
            _desktopManager = desktopManager;

            EnableMultiMon = Settings.Instance.EnableTaskbarMultiMon;
            EnableService  = Settings.Instance.EnableTaskbar;

            if (EnableService)
            {
                _shellManager.ExplorerHelper.HideExplorerTaskbar = true;
                _shellManager.AppBarManager.AppBarEvent         += AppBarEvent;
            }
        }