private void CheckUpdate() { string newversion = CheckInfoService.CheckBaseVersion(); string version = System.Windows.Forms.Application.ProductVersion.ToString(); if (version != newversion) { MessageBox.Show("旧版已停止使用,请到github或gitee仓库更新最新发行版!", "系统提醒", MessageBoxButtons.OK, MessageBoxIcon.Information); System.Windows.Forms.Application.Exit(); this.Visible = false; //调用系统默认的浏览器 System.Diagnostics.Process.Start("https://gitee.com/yjj0720/TopskyHotelManagerSystem/releases"); } else { MessageBox.Show("当前已为最新版本,无需更新!", "系统提醒", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public static string CheckBaseVersion() { return(CheckInfoService.CheckBaseVersion()); }
public static List <CheckInfo> SelectCheckInfoAll() { return(CheckInfoService.SelectCheckInfoAll()); }