private void browser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { try { string version = browser.Document.Body.InnerText; if (version != Application.ProductVersion) { newversion nvform = new newversion(version); nvform.ShowDialog(); this.Show(); // show dialog box for download now, learn more and remind me next time } } catch { Log.Write("Server down"); } }
private void browser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { string data = browser.Document.Body.InnerText; string[] nVersion = data.Split(':', ';'); //MessageBox.Show(data, "asd"); if (nVersion[5] != Application.ProductVersion) { newversion nvform = new newversion(nVersion[5]); nvform.ShowDialog(); this.Show(); // show dialog box for download now, learn more and remind me next time } }