Пример #1
0
        /// <summary>
        /// show the syn Hader name in the application from XML
        /// </summary>
        private void synName()
        {
            XmlDocument xmlDoc = new XmlDocument();

            if (!File.Exists("SynName.xml"))
            {
                SynChangeNamecs syn = new SynChangeNamecs();
                syn.SetAppSynName();
            }
            else
            {
                xmlDoc.Load("SynName.xml");
                XmlNodeList nodeList = xmlDoc.DocumentElement.SelectNodes("/Table/SynAppName");
                string      SynID1 = "", SynName1 = "";
                foreach (XmlNode node in nodeList)
                {
                    SynID1   = node.SelectSingleNode("SynApp_id").InnerText;
                    SynName1 = node.SelectSingleNode("SynName").InnerText;
                }
                lblSynName.Text = SynName1;
            }
        }
Пример #2
0
        private void btnChangeSynName_Click(object sender, EventArgs e)
        {
            SynChangeNamecs nm = new SynChangeNamecs();

            nm.Show();
        }