/// <summary> /// Executes the command /// </summary> /// <param name="handled">set to true if handled</param> /// <returns>true on success</returns> public override bool Execute(ref bool handled) { handled = true; switch (Command) { case "QuickSearch": _menu.handleQuickSearch(); break; case "GoogleSearch": _menu.handleGoogleSearch(); break; case "WikiSearch": _menu.handleWikiSearch(); break; case "Volume": DialogUtils.LaunchVolumeSettingsAgent(); break; case "SpeechControl": _menu.handleSpeechControl(); _menu.commandDispatcher.Dispatch("CmdGoBack", ref handled); break; case "talkWindowZoomMenu": _menu.handleTalkWindowZoom(); break; default: handled = false; break; } return(true); }