Exemplo n.º 1
0
        private void ButtonCallback(int index)
        {
            if (_config.Buttons.ButtonType == ButtonTypeEnum.DisplayGraphic)
            {
                QueueIconRefresh(_currentFocus);
            }
            var activeWindow = _Manager.GetActiveWindow();

            _ActiveWindowsByDesktopIndex[_currentFocus] = activeWindow;

            _Manager.ChangeDesktop(index);
            RefreshButtons();

            IntPtr newActiveWindow;

            if (_ActiveWindowsByDesktopIndex.TryGetValue(index, out newActiveWindow))
            {
                _Manager.SetActiveWindow(newActiveWindow);
            }
        }
Exemplo n.º 2
0
 public void ChangeDesktop(int id)
 {
     _internalManager.ChangeDesktop(id);
 }