123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- using System.Xml;
- namespace OTSMeasureApp._10_OTSSplashScreen
- {
- public partial class OTSSplashScreen_Cleanness : Form
- {
- public OTSSplashScreen_Cleanness()
- {
- InitializeComponent();
- }
- private void OTSSplashScreen_Load(object sender, EventArgs e)
- {
- this.BackgroundImage = Properties.Resources.Cleanliness;
- }
- private void label2_Click(object sender, EventArgs e)
- {
- }
- private void richTextBox1_Click(object sender, EventArgs e)
- {
- System.Diagnostics.Process.Start("notepad.exe", Application.StartupPath + "\\version.txt");
- }
- private void richTextBox3_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- string ReadSysTypeByXml()
- {
- string path = @".\Config\SysData\OTSProgMgrParam.pmf";
- try
- {
- XmlDocument xmlDocument = new XmlDocument();
- xmlDocument.Load(path);
- XmlNode node = xmlDocument.SelectSingleNode("XMLData");
- XmlElement xe = (XmlElement)node;
- return xe.GetAttribute("SysType");
- }
- catch /*(Exception ex)*/
- {
- return null;
- }
- }
- }
- }
|