Ejemplo n.º 1
0
 private void OnControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args)
 {
     if (_status != null)
     {
         _status.Activate();
         VsHelpers.WriteStatus("Dial activated");
     }
 }
Ejemplo n.º 2
0
        private void OnControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args)
        {
            if (_firstActivation)
            {
                _firstActivation = false;
                RequestActivation(DialPackage.Options.DefaultProvider.ToString());
            }

            if (_status != null)
            {
                _status.Activate(sender.Menu.GetSelectedMenuItem()?.DisplayText);
            }
        }
        private void OnControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args)
        {
            if (_firstActivation)
            {
                _firstActivation = false;
                var defaultMenu = DialPackage.Options.DefaultProvider.ToString();
                if (!DialPackage.Options.MenuVisibility[defaultMenu])
                {
                    defaultMenu = DialPackage.Options.MenuVisibility.FirstOrDefault(_ => _.Value).Key ?? KnownProviders.Scroll.ToString();
                }
                RequestActivation(defaultMenu);
            }

            if (_status != null)
            {
                _status.Activate(sender.Menu.GetSelectedMenuItem()?.DisplayText);
            }
        }