using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace OTSSysMgrApp { public partial class About : Form { public About() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { this.Close(); } private void button2_Click(object sender, EventArgs e) { string strPath = Application.StartupPath + "\\Version.txt"; if (File.Exists(strPath)) { //打开刚才导出的文件 System.Diagnostics.Process.Start(strPath); } else { MessageBox.Show("找不到版本说明文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } } } }