예제 #1
0
 /// <summary>
 /// 检查更新
 /// </summary>
 private void CheckVersion(string updateVersion, List<string> listUrl)
 {
     CurrentStage = StageEnum.PopWinFace;
     //updateVersion = GoCheckUpdate();
     if (updateVersion == string.Empty)
     {
         Warning.WarningText = "当前已经是最新版本。";
     }
     else
     {
         MessageWin wm = new MessageWin("检测到最新版本:" + updateVersion + ",是否更新(更新期间会关闭所有应用程序)?");
         wm.Show();
         CurrentMessageWin = wm;
         wm.ClickYesBtn += delegate
         {
             //MessageBox.Show("开始更新");
             CurrentStage = StageEnum.LoadRarFace;
             //List<string> zipList = new List<string>();
             //zipList.Add(updateAdress);
             BeginDownLoadUpdateFiles(listUrl);
         };
     }
 }
예제 #2
0
 private void RealButton_Click(object sender, EventArgs e)
 {
     //MessageBox.Show("导入失败");
     isFailed = true;
     BarGo();
     MessageWin wm = new MessageWin("已手动停止资源获取,本次导入资源失败。");
     wm.Show(true);
 }