Пример #1
0
        private void CheckUpdate()
        {
            string newversion = CheckInfoManager.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);
            }
        }
Пример #2
0
 private void FrmCashList_Load(object sender, EventArgs e)
 {
     CmpSetDgv();
     dgvCheckInfo.AutoGenerateColumns = false;
     dgvCheckInfo.DataSource          = CheckInfoManager.SelectCheckInfoAll();
 }