Beispiel #1
0
        private void btnDesBin2_Click(object sender, EventArgs e)
        {
            BinaryFormatter formateador = new BinaryFormatter();
            Stream          mistream    = new FileStream("nuevoreg2.psm", FileMode.Open, FileAccess.Read, FileShare.None);
            SerXML          miclase     = (SerXML)formateador.Deserialize(mistream);

            mistream.Close();
            dtgDeserializar.DataSource = miclase.Cargar2(miclase);
        }
Beispiel #2
0
        private void btnDesXML2_Click(object sender, EventArgs e)
        {
            XmlSerializer formateador = new XmlSerializer(typeof(SerXML));
            Stream        mistream    = new FileStream("regxml.psm", FileMode.Open, FileAccess.Read, FileShare.None);
            SerXML        miclase     = (SerXML)formateador.Deserialize(mistream);

            mistream.Close();

            dtgDeserializar.DataSource = miclase.Cargar2(miclase);
        }