Пример #1
0
        public bool ShowHelp(string keyword, HelpSystem.HelpKind kind, string preferredProduct = "")
        {
            if (kind != HelpSystem.HelpKind.Msdn)
            {
                return(false);
            }
            if (!IsUnityKeyword(keyword))
            {
                return(false);
            }
            keyword = StripPrefix(keyword);

            var uri = GetUri(keyword);

            myUriOpener.OpenUri(uri);

            return(true);
        }
Пример #2
0
 private void Login()
 {
     myClient.GetTokenAsync(
         login => myOpensUri.OpenUri(new Uri(myClient.BuildAuthorizeUrl())),
         myClient.LogException);
 }