From ce774a20fe6c8bbb1044b4fe1dfa460a10d7edad Mon Sep 17 00:00:00 2001 From: carverh Date: Thu, 21 Jul 2016 09:17:25 -0700 Subject: Fixed Bugs and Organized Items --- source/WindowsFormsApplication1/Apps/Shiftnet.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/WindowsFormsApplication1/Apps/Shiftnet.cs') diff --git a/source/WindowsFormsApplication1/Apps/Shiftnet.cs b/source/WindowsFormsApplication1/Apps/Shiftnet.cs index cbcab1b..017377c 100644 --- a/source/WindowsFormsApplication1/Apps/Shiftnet.cs +++ b/source/WindowsFormsApplication1/Apps/Shiftnet.cs @@ -60,11 +60,17 @@ namespace ShiftOS wbshiftnet.DocumentText = WebLayer.VisitSite("shiftnet://main"); txtaddress.Text = WebLayer.LastUrl; } + + private void txtaddress_TextChanged(object sender, EventArgs e) + { + + } } public class WebLayer { - private static string HtmlTemplate = "Shiftnet Page#BODY#"; + public static String serverurl = "http://playshiftos.ml"; + private static string HtmlTemplate = "Shiftnet Page#BODY#"; public static string LastUrl = null; public static string VisitSite(string url) @@ -74,7 +80,7 @@ namespace ShiftOS { try { - string content = wc.DownloadString(url.Replace("shiftnet://", "http://www.playshiftos.ml/shiftnet/www/")); + string content = wc.DownloadString(url.Replace("shiftnet://", serverurl + "/shiftnet/www/")); if (content.StartsWith("")) { LastUrl = url; -- cgit v1.2.3