Esempio n. 1
0
        public void btn_guardarXML_Click(object sender, EventArgs e)
        {
            string xml = Dades.dadesXMLPlanetesRegio(cbx_regions.Text, regions, planetas);

            path = Application.StartupPath + "\\XMLRegions\\" + cbx_regions.Text + ".xml";
            using (System.IO.StreamWriter sw = new System.IO.StreamWriter(path, false))
            {
                sw.WriteLine(xml);
            }
        }
Esempio n. 2
0
        public void button1_Click(object sender, EventArgs e)
        {
            string xml  = Dades.dadesXMLPlanetesRegio(comboBox1.Text, regions, planetas);
            string path = @"E:\\Planetes\\" + comboBox1.Text + ".xml";

            using (System.IO.StreamWriter sw = new System.IO.StreamWriter(path, false))
            {
                sw.WriteLine(xml);
            }
        }