private void ArticlesBtn_Click(object sender, RibbonControlEventArgs e) { Cursor.Current = Cursors.WaitCursor; try { ArticlesSidebarsControl myUserControl = new ArticlesSidebarsControl(); CheckLoginAndPerformAction(myUserControl, "Articles"); } catch { } finally { Cursor.Current = Cursors.Default; } }
/// <summary> /// Hyperlinks that should be transformed are those that author inputs, /// not a related article, not a sidebar, and not a deal. /// </summary> /// <param name="currentHyperlink"></param> /// <returns></returns> private static bool ShouldNotTransformHyperlink(Hyperlink currentHyperlink) { return(ArticlesSidebarsControl.IsArticleOrSidebarHyperlink(currentHyperlink) || DealsDrugsCompaniesControl.IsADealHyperlink(currentHyperlink)); }