Ejemplo n.º 1
0
        private void button5_Click(object sender, EventArgs e)  //加载按钮
        {
            XmlRW myXml = new XmlRW();

            myXml.ReadXML(file_read_path);//读取

            Form2_Load();
        }
Ejemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)  //写入按钮
        {
            XmlRW writer = new XmlRW();


            writer.WriteXML_init(FilePath);

            for (int i = 0; i < table.RowCount; i++)
            {
                writer.WriteXML_write("版本1",
                                      table.Controls[i * 7 + 0].Text.ToString(),
                                      table.Controls[i * 7 + 1].Text.ToString(),
                                      table.Controls[i * 7 + 2].Text.ToString(),
                                      table.Controls[i * 7 + 3].Text.ToString(),
                                      table.Controls[i * 7 + 4].Text.ToString()
                                      );
            }

            writer.WriteXML_save(FilePath);

            MessageBox.Show("写入完成!!!");
        }