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; } } } }