Esempio n. 1
0
 public JumpListManager(string appId)
 {
     _appId = appId;
     _destinations = new JumpListDestinations();
     _tasks = new JumpListTasks();
     _customDestinationList = (ICustomDestinationList)new CDestinationList();
     if (String.IsNullOrEmpty(_appId))
     {
         _appId = Windows7Taskbar.ProcessAppId;
     }
     if (!String.IsNullOrEmpty(_appId))
     {
         _customDestinationList.SetAppID(_appId);
     }
     _displaySettingsChangeHandler = delegate
     {
         RefreshMaxSlots();
     };
     SystemEvents.DisplaySettingsChanged += _displaySettingsChangeHandler;
 }
Esempio n. 2
0
        ApplicationDestinationType _enabledAutoDestinationType; // = ApplicationDestinationType.Recent;

        #endregion

        /// <summary>
        /// Initializes a new instance of the jump list manager
        /// with the specified application id.
        /// </summary>
        /// <param name="appId">The application id.</param>
        public JumpListManager(string appId)
        {
            _appId        = appId;
            _destinations = new JumpListDestinations();
            _tasks        = new JumpListTasks();

            _customDestinationList = (ICustomDestinationList) new CDestinationList();

            if (String.IsNullOrEmpty(_appId))
            {
                _appId = Windows7Taskbar.ProcessAppId;
            }
            if (!String.IsNullOrEmpty(_appId))
            {
                _customDestinationList.SetAppID(_appId);
            }

            _displaySettingsChangeHandler = delegate
            {
                RefreshMaxSlots();
            };

            SystemEvents.DisplaySettingsChanged += _displaySettingsChangeHandler;
        }