예제 #1
0
        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;
            }
        }
예제 #2
0
 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;
     }
 }
예제 #3
0
 private void btnhome_Click(object sender, EventArgs e)
 {
     wbshiftnet.DocumentText = WebLayer.VisitSite("shiftnet://main");
     txtaddress.Text         = WebLayer.LastUrl;
 }
예제 #4
0
 public void InitialSetup()
 {
     pnlcontrols.BackColor   = API.CurrentSkin.titlebarcolour;
     wbshiftnet.DocumentText = WebLayer.VisitSite("shiftnet://main");
     txtaddress.Text         = WebLayer.LastUrl;
 }