private static void FindOutMore(object obj)
        {
            FeatureTrackingManager.Instance.UseFeature(Features.Marketing_AlternativeTo);
            WebsiteAccess.OpenWebsite(WebsiteAccess.Url_AlternativeTo);

            // If they have gone to investigate, don't harass them for a loooong time
            ConfigurationManager.Instance.ConfigurationRecord.Marketing_LastNotificationOfAlternativeTo = DateTime.UtcNow.AddMonths(12);
            ConfigurationManager.Instance.ConfigurationRecord_Bindable.NotifyPropertyChanged(nameof(ConfigurationManager.Instance.ConfigurationRecord.Marketing_LastNotificationOfAlternativeTo));
        }
        void WebsiteNodeContentControl_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ++website_node_content.Underlying.VisitedCount;
            website_node_content.Underlying.LastVisited = DateTime.UtcNow;
            website_node_content.NotifyPropertyChanged();

            try
            {
                WebsiteAccess.OpenWebsite(website_node_content.Underlying.Url);
            }
            catch (Exception ex)
            {
                MessageBoxes.Error(ex, "There was a problem launching your web page");
            }
        }
Пример #3
0
        private void WebsiteNodeContentControl_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ++website_node_content.Underlying.VisitedCount;
            website_node_content.Underlying.LastVisited = DateTime.UtcNow;
            website_node_content.NotifyPropertyChanged();

            try
            {
#if UNUSED_CODE
                // Utilities code; see https://github.com/jimmejardine/qiqqa-open-source/issues/26
                Process.Start(website_node_content.Underlying.Url);
#else
                // Qiqqa code; see https://github.com/jimmejardine/qiqqa-open-source/issues/26
                WebsiteAccess.OpenWebsite(website_node_content.Underlying.Url);
#endif
            }
            catch (Exception ex)
            {
                MessageBoxes.Error(ex, "There was a problem launching your web page");
            }
        }
 private void Hyperlink_Click(object sender, RoutedEventArgs e)
 {
     if (sender == lnkIconsFreeDigitalPhotos)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_FreeDigitalPhotos);
     }
     else if (sender == lnkIconsTango)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_IconsTango);
     }
     else if (sender == lnkIconsBuuf)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_IconsBuuf);
     }
     else if (sender == lnkSorax)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_Sorax);
     }
     else if (sender == lnkRedgate)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_Redgate);
     }
     else if (sender == lnkTesseract)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_Tesseract);
     }
     else if (sender == lnkWpfToolkit)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_WpfToolkit);
     }
     else if (sender == lnkSplashScreen)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_WiseWanderer);
     }
     else if (sender == lnkCiteProc)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_CiteProc);
     }
     else if (sender == lnkCSL || sender == lnkCSLProject)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_CSLProject);
     }
     else if (sender == lnkAvalonEdit)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_AvalonEdit);
     }
     else if (sender == lnkZoteroCSL)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_ZoteroCSLRepository);
     }
     else if (sender == lnkCSLGithub)
     {
         MainWindowServiceDispatcher.Instance.OpenUrlInBrowser(WebsiteAccess.Url_CSLGithub);
     }
     else if (sender == lnkQiqqaWebsite)
     {
         WebsiteAccess.OpenWebsite(WebsiteAccess.OurSiteLinkKind.Home);
     }
     else if (sender == lnkIconsVisualPharm)
     {
         WebsiteAccess.OpenWebsite(WebsiteAccess.Url_IconsVisualPharm);
     }
     else if (sender == lnkIconsGlyphicons)
     {
         WebsiteAccess.OpenWebsite(WebsiteAccess.Url_Glyphicons);
     }
     else if (sender == lnkGecko)
     {
         WebsiteAccess.OpenWebsite(WebsiteAccess.Url_Gecko);
     }
     else if (sender == lnkXULRunner)
     {
         WebsiteAccess.OpenWebsite(WebsiteAccess.Url_XULRunner);
     }
     else if (sender == lnkLicenses)
     {
         MainWindowServiceDispatcher.Instance.OpenLicensesDirectory();
     }
     else if (sender == lnkForums)
     {
         WebsiteAccess.OpenWebsite(WebsiteAccess.Url_Forums);
     }
     else
     {
         Logging.Error("Unknown about screen hyperlink " + sender);
     }
 }
 private void Feedback_Click(object sender, RoutedEventArgs e)
 {
     WebsiteAccess.OpenWebsite(WebsiteAccess.OurSiteLinkKind.Feedback);
 }
Пример #6
0
        private void Hyperlink_Click(object sender, RoutedEventArgs e)
        {
            if (false)
            {
            }

            else if (sender == lnkIconsFreeDigitalPhotos)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://www.freedigitalphotos.net");
            }
            else if (sender == lnkIconsTango)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://commons.wikimedia.org/wiki/User:Inductiveload/Tango");
            }
            else if (sender == lnkIconsBuuf)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://mattahan.deviantart.com/");
            }
            else if (sender == lnkSorax)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://www.soraxsoft.com/index.html");
            }
            else if (sender == lnkRedgate)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://www.red-gate.com/");
            }
            else if (sender == lnkTesseract)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://sourceforge.net/projects/tesseract-ocr/");
            }
            else if (sender == lnkWpfToolkit)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://wpf.codeplex.com/");
            }
            else if (sender == lnkSplashScreen)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://wisewanderer.deviantart.com/");
            }
            else if (sender == lnkCiteProc)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("https://bitbucket.org/fbennett/citeproc-js/wiki/Home/");
            }
            else if (sender == lnkCSL)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://citationstyles.org/");
            }
            else if (sender == lnkAvalonEdit)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://wiki.sharpdevelop.net/AvalonEdit.ashx");
            }
            else if (sender == lnkZoteroCSL)
            {
                MainWindowServiceDispatcher.Instance.OpenUrlInBrowser("http://www.zotero.org/styles/");
            }
            else if (sender == lnkQiqqaWebsite)
            {
                WebsiteAccess.OpenWebsite(WebsiteAccess.OurSiteLinkKind.Home);
            }
            else if (sender == lnkIconsVisualPharm)
            {
                WebsiteAccess.OpenWebsite("http://www.visualpharm.com/");
            }
            else if (sender == lnkIconsGlyphicons)
            {
                WebsiteAccess.OpenWebsite("http://glyphicons.com/");
            }
            else if (sender == lnkGecko)
            {
                WebsiteAccess.OpenWebsite("http://code.google.com/p/geckofx/");
            }
            else if (sender == lnkXULRunner)
            {
                WebsiteAccess.OpenWebsite("https://developer.mozilla.org/en/XULRunner");
            }
            else if (sender == lnkLicenses)
            {
                MainWindowServiceDispatcher.Instance.OpenLicensesDirectory();
            }
            else if (sender == lnkForums)
            {
                WebsiteAccess.OpenWebsite(WebsiteAccess.Url_Forums);
            }

            else
            {
                Logging.Error("Unknown about screen hyperlink " + sender);
            }
        }
Пример #7
0
 internal void OpenWwwQiqqaCom()
 {
     WebsiteAccess.OpenWebsite(WebsiteAccess.OurSiteLinkKind.Home);
 }
Пример #8
0
 internal void OpenFeedback()
 {
     WebsiteAccess.OpenWebsite(WebsiteAccess.OurSiteLinkKind.Feedback);
 }
Пример #9
0
        // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

        internal void OpenBrowser(string url)
        {
            WebsiteAccess.OpenWebsite(url);
        }
Пример #10
0
 void HyperlinkForums_Click(object sender, RoutedEventArgs e)
 {
     WebsiteAccess.OpenWebsite(WebsiteAccess.Url_Forums);
 }
 private void HyperlinkPremiumPlus_Click(object sender, RoutedEventArgs e)
 {
     WebsiteAccess.OpenWebsite(WebsiteAccess.GetPremiumPlusUrl("SYNC_INSTRUCTIONS"));
 }
 internal void OpenHelp()
 {
     WebsiteAccess.OpenWebsite(WebsiteAccess.OurSiteLinkKind.Help);
 }