private void LinkInterceptor(object sender, WebBrowserNavigatingEventArgs e) { var url = e.Url.OriginalString; if (url != "about:blank") { var surl = url.Replace("http://", "shiftnet://"); wbshiftnet.DocumentText = WebLayer.VisitSite(surl); txtaddress.Text = WebLayer.LastUrl; } }
private void btngo_Click(object sender, EventArgs e) { if (txtaddress.Text.ToLower().StartsWith("shiftnet://")) { wbshiftnet.DocumentText = WebLayer.VisitSite(txtaddress.Text); txtaddress.Text = WebLayer.LastUrl; } else { wbshiftnet.DocumentText = WebLayer.VisitSite("shiftnet://not_found"); txtaddress.Text = WebLayer.LastUrl; } }
private void btnhome_Click(object sender, EventArgs e) { wbshiftnet.DocumentText = WebLayer.VisitSite("shiftnet://main"); txtaddress.Text = WebLayer.LastUrl; }
public void InitialSetup() { pnlcontrols.BackColor = API.CurrentSkin.titlebarcolour; wbshiftnet.DocumentText = WebLayer.VisitSite("shiftnet://main"); txtaddress.Text = WebLayer.LastUrl; }