OTSSplashScreen_Cleanness.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Drawing;
  3. using System.Windows.Forms;
  4. using System.Xml;
  5. namespace OTSMeasureApp._10_OTSSplashScreen
  6. {
  7. public partial class OTSSplashScreen_Cleanness : Form
  8. {
  9. public OTSSplashScreen_Cleanness()
  10. {
  11. InitializeComponent();
  12. }
  13. private void OTSSplashScreen_Load(object sender, EventArgs e)
  14. {
  15. this.BackgroundImage = Properties.Resources.Cleanliness;
  16. }
  17. private void label2_Click(object sender, EventArgs e)
  18. {
  19. }
  20. private void richTextBox1_Click(object sender, EventArgs e)
  21. {
  22. System.Diagnostics.Process.Start("notepad.exe", Application.StartupPath + "\\version.txt");
  23. }
  24. private void richTextBox3_Click(object sender, EventArgs e)
  25. {
  26. this.Close();
  27. }
  28. string ReadSysTypeByXml()
  29. {
  30. string path = @".\Config\SysData\OTSProgMgrParam.pmf";
  31. try
  32. {
  33. XmlDocument xmlDocument = new XmlDocument();
  34. xmlDocument.Load(path);
  35. XmlNode node = xmlDocument.SelectSingleNode("XMLData");
  36. XmlElement xe = (XmlElement)node;
  37. return xe.GetAttribute("SysType");
  38. }
  39. catch /*(Exception ex)*/
  40. {
  41. return null;
  42. }
  43. }
  44. }
  45. }