Esempio n. 1
0
        //load serialized xml to datagridview
        private void button4_Click(object sender, EventArgs e)
        {
            XMLExportImport xmlExportImport = new XMLExportImport();
            OpenFileDialog  op = new OpenFileDialog();

            op.DefaultExt = "xml";
            if (op.ShowDialog() == DialogResult.OK)
            {
                xmlExportImport.import(op.FileName, dataGridView1);
            }
        }
Esempio n. 2
0
        //serialize button
        private void button3_Click(object sender, EventArgs e)
        {
            XMLExportImport xmlExportImport = new XMLExportImport();
            SaveFileDialog  s = new SaveFileDialog();

            s.DefaultExt   = "xml";
            s.AddExtension = true;
            if (s.ShowDialog() == DialogResult.OK)
            {
                xmlExportImport.export(s.FileName, dataGridView1);
            }
        }