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); }