Пример #1
0
        /// <summary>
        /// Opens a browser with the search term provided in the
        /// </summary>
        /// <param name="searchTerm"></param>
        /// <param name="searchEngineType">duckduckgo,google,bing (any other domain name that can be postfixed with .com)</param>
        public void OpenSearchEngine(string searchTerm, SearchEngineTypes searchEngineType = SearchEngineTypes.DuckDuckGo)
        {
            var url = "https://{0}.com?q={1}";

            url = string.Format(url, searchEngineType, searchTerm);

            ShellUtils.OpenUrl(url);
        }
 private void ToolButtonMoreInfo_Click(object sender, RoutedEventArgs e)
 {
     ShellUtils.OpenUrl("https://github.com/RickStrahl/Commander-MarkdownMonster-Addin");
 }