About.cs 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. namespace OTSSysMgrApp
  12. {
  13. public partial class About : Form
  14. {
  15. public About()
  16. {
  17. InitializeComponent();
  18. }
  19. private void button1_Click(object sender, EventArgs e)
  20. {
  21. this.Close();
  22. }
  23. private void button2_Click(object sender, EventArgs e)
  24. {
  25. string strPath = Application.StartupPath + "\\Version.txt";
  26. if (File.Exists(strPath))
  27. {
  28. //打开刚才导出的文件
  29. System.Diagnostics.Process.Start(strPath);
  30. }
  31. else
  32. {
  33. MessageBox.Show("找不到版本说明文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
  34. }
  35. }
  36. }
  37. }