Ejemplo n.º 1
0
        public bool IsHelpAvailable(object context)
        {
            TopicHelpContext topicHelpContext = context as TopicHelpContext;

            if (topicHelpContext != null && !string.IsNullOrEmpty(this.DetermineHelpTopic(topicHelpContext.TopicIdentifier, topicHelpContext.Framework)))
            {
                return(this.GetBlendSDKHelp(topicHelpContext.Framework).Available);
            }
            return(false);
        }
Ejemplo n.º 2
0
        public override void Execute(object parameter)
        {
            TopicHelpContext contextFromParameter = TopicHelpContext.CreateContextFromParameter(parameter, this.DesignerContext);

            if (contextFromParameter == null)
            {
                return;
            }
            Process.Start(string.Format((IFormatProvider)CultureInfo.InvariantCulture, "http://www.bing.com/search?q=Expression+Blend+{0}+{1}", new object[2]
            {
                (object)this.GetFriendlyNameForFrameworkIdentifier(contextFromParameter.Framework.Identifier),
                (object)this.GetTypeNameFromFullName(contextFromParameter.TopicIdentifier)
            }));
        }
Ejemplo n.º 3
0
        public void ProvideHelp(object context)
        {
            TopicHelpContext topicHelpContext = context as TopicHelpContext;

            if (topicHelpContext == null)
            {
                return;
            }
            string helpTopic = this.DetermineHelpTopic(topicHelpContext.TopicIdentifier, topicHelpContext.Framework);

            if (string.IsNullOrEmpty(helpTopic))
            {
                return;
            }
            this.ShowSDKHelpTopic(helpTopic, topicHelpContext.Framework);
        }
Ejemplo n.º 4
0
 public override void Execute(object parameter)
 {
     this.HelpService.ProvideHelp((object)TopicHelpContext.CreateContextFromParameter(parameter, this.DesignerContext));
 }
Ejemplo n.º 5
0
 public bool CanExecute(object parameter)
 {
     return(this.HelpService.IsHelpAvailable((object)TopicHelpContext.CreateContextFromParameter(parameter, this.DesignerContext)));
 }