using HslCommunication.BasicFramework;using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace CommonLibrary{/// <summary>/// 控制版本号的窗口类/// </summary>public partial class FormVersionControl : Form{/// <summary>////// </summary>/// <param name="settings"></param>public FormVersionControl(ServerSettings settings){InitializeComponent();Settings = settings;}private ServerSettings Settings = null;private void FormVersionControl_Shown(object sender, EventArgs e){textBox1.Text = Settings.SystemVersion.ToString();textBox2.Focus();}private void userButton1_Click(object sender, EventArgs e){try{Settings.SystemVersion = new SystemVersion(textBox2.Text);}catch(Exception ex){MessageBox.Show("版本号格式错误:应为1.0.0" + Environment.NewLine +"错误描述:" + ex.Message);}try{Settings.SaveToFile();MessageBox.Show("保存成功");}catch(Exception ex){MessageBox.Show("数据保存失败" + Environment.NewLine +"错误描述:" + ex.Message);}}private void FormVersionControl_Load(object sender, EventArgs e){}}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。