winform 版本号比较

        Version now_v = new Version(strval);
            Version load_v = new Version(model.version.ToString());
            if (now_v < load_v&& MessageBox.Show("检查到新版本,是否更新?", "Update", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                MessageBox.Show(now_v + "<" + load_v);
            }

  

posted @ 2018-10-08 09:45  A-GREATE-USERNAME  阅读(595)  评论(1编辑  收藏  举报