private void _controller_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { if (ControlAcquired != null) { ControlAcquired(null, args.ToUnity()); } }
private void OnControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { if (_status != null) { _status.Activate(); VsHelpers.WriteStatus("Dial activated"); } }
private void MyController_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { //Ensure tool panel is rendered at the correct location when focus is gained if (args.Contact != null) { UpdatePanelLocation(args.Contact); } ToolPanel.Visibility = Visibility.Visible; }
private void RadialController_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { //Console.WriteLine("control acquired"); Invoke(new Action(() => { var timestamp = DateTime.Now.ToLongTimeString(); this.labelRadialOutput.Text = string.Format("[{0}] control acquired", timestamp); var data = new Dictionary <string, object>(); data["event_id"] = EventId_ControlAcquired; localUdpClient.Send(data); })); }
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 ?? nameof(KnownProviders.Scroll); } RequestActivation(sender, defaultMenu); } Debug.Assert(_status != null); _status.Text = sender.Menu.GetSelectedMenuItem()?.DisplayText; }
private void RadialController_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { }
private void Controller_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { txtStatus.Text = "Device Acquired"; }
private void Controller_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { rotationControl.Visibility = Visibility.Visible; }
private void Dial_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { isWindowFocused = true; }
private void Controller_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { log.Text += "\nControl Acquired"; LogContactInfo(args.Contact); }
private void RadialController_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { }
private void Controller_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { log.Text += "\nControl Acquired"; LogContactInfo(args.Contact); }
private void controller_ControlAcquired(object sender, RadialControllerControlAcquiredEventArgs args) { m_controlAcquiredEventArgs = args; m_controlAcquiredEventFired = true; }
// Occurs when a custom RadialController tool (defined by an app) // is selected from the menu, or when an app associated with the // RadialController object is brought to the foreground while a // custom RadialController tool is active. // Event logged, no other action. private void RadialController_ControlAcquired(RadialController sender, RadialControllerControlAcquiredEventArgs args) { AddToLog("\n" + menuItems[activeMenuItemIndex].DisplayText + " control acquired"); }