private void wikiLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (Context != null) { Ankh.VS.IAnkhWebBrowser wb = Context.GetService <Ankh.VS.IAnkhWebBrowser>(); if (wb != null) { Ankh.VS.AnkhBrowserArgs args = new Ankh.VS.AnkhBrowserArgs(); args.External = true; Uri cfSignUpUrl = new Uri(EXTENSIONS_WIKI_URL); wb.Navigate(cfSignUpUrl, args); } } }
private void cloudForgePictureBox_Click(object sender, EventArgs e) { Control control = this; IAnkhServiceProvider sp = control as IAnkhServiceProvider; while (control != null && sp == null) { control = control.Parent; sp = control as IAnkhServiceProvider; } if (sp != null) { Ankh.VS.IAnkhWebBrowser wb = sp.GetService <Ankh.VS.IAnkhWebBrowser>(); if (wb != null) { Ankh.VS.AnkhBrowserArgs args = new Ankh.VS.AnkhBrowserArgs(); args.External = true; Uri cfSignUpUrl = new Uri(CF_SIGNUP_URL); wb.Navigate(cfSignUpUrl, args); } } }