Exemple #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         SaveXmlFile setxml = new SaveXmlFile(Application.StartupPath + "\\set.xml");
         string      str    = setxml.ReadXmlNodeValue("InPut", "PrintName");
         textBox2.Text = str;
     }catch (Exception e1)
     {
         MessageBox.Show(e1.Message);
     }
 }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         SaveXmlFile setxml = new SaveXmlFile(@Application.StartupPath + @"\set.xml");;
         setxml = new SaveXmlFile(Application.StartupPath + "\\set.xml");
         setxml.SaveXmlNode("InPut", "PrintName", textBox1.Text);
         setxml.SaveChanges();
     }
     catch (Exception e1)
     {
         MessageBox.Show(e1.Message);
     }
 }