/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Form1_Load(object sender, EventArgs e) { toolStripMenuItem3.Checked = autoupdate; FileValidate(); SystemDetection(); timer1.Start(); SWOnline swo = new SWOnline(releaseUrl, reportUrl); swo.TopicLink = WriteProgress.topicLink; swo.TopicName = WriteProgress.topicName; swo.Linklabel = linkLabel2; if (Assembly.GetExecutingAssembly().GetName().Version.Revision == 9) { Text += "Preview Bulit:" + File.GetLastWriteTime(GetType().Assembly.Location); } else { Text += Application.ProductVersion; if (autoupdate) { Thread threadUpdate = new Thread(swo.Update); threadUpdate.Start(); } } Thread threadReport = new Thread(swo.Report); threadReport.Start(); Thread threadShowad = new Thread(swo.Showad); threadShowad.Start(); LoadUDList(); }
private void 自动检查更新ToolStripMenuItem_Click(object sender, EventArgs e) { SWOnline swo = new SWOnline(releaseUrl, reportUrl); Thread threadUpdate = new Thread(swo.Update); threadUpdate.Start(); //threadupdate = new Thread(SWOnline.update); //threadupdate.Start(); //MsgManager.getResString("Msg_UpdateTip") //若无弹出窗口,则当前程序已是最新版本! MessageBox.Show(MsgManager.GetResString("Msg_UpdateTip", MsgManager.ci)); }