private void helpToolStripMenuItem_Click(object sender, EventArgs e) { var fw = new FormWeb(); fw.Text = com.lang.dat.Help; fw.setUrl(Application.StartupPath + "\\help\\help_zh-CN.html"); fw.Show(); }
private void helpToolStripMenuItem_Click(object sender, EventArgs e) { var fw = new FormWeb(); fw.Text = com.lang.dat.Help; var fs = Directory.GetFiles(Application.StartupPath + "\\help\\"); var langStr = com.getLangStr(); foreach (var f in fs) { if (f.ToLower().IndexOf(langStr.ToLower()) >= 0) { fw.setUrl(f); fw.Show(); return; } } fw.setUrl(fs + "help_english.html"); fw.Show(); }
async void checkUpdate() { try { var ver = await Http.HttpGetJson(com.homeUrl() + "media/version?lang=" + System.Threading.Thread.CurrentThread.CurrentCulture.Name, new Version()); if (ver.needUpdate()) { var fw = new FormWeb(true); fw.Text = com.lang.dat.New_version; fw.setDocumentText(ver.context); fw.Show(); } } catch (Exception) { } }