Esempio n. 1
0
        private void btnImage_Click(object sender, EventArgs e)
        {
            StreamReader reader = new StreamReader("listaCoches2.xml");

            this.coches = (ColeccionCoches)this.serial.Deserialize(reader);
            reader.Close();
        }
Esempio n. 2
0
 public Form32PracticaCoches()
 {
     InitializeComponent();
     this.coches = new ColeccionCoches();
     this.serial = new XmlSerializer(typeof(ColeccionCoches));
     this.indice = 0;
     this.path   = "../../Images/simpson.jpg";
 }
Esempio n. 3
0
        private void btnRead_Click(object sender, EventArgs e)
        {
            StreamReader reader = new StreamReader("listaCoches2.xml");

            //Realizamos el casting para la desserializacion
            this.coches = (ColeccionCoches)this.serial.Deserialize(reader);
            reader.Close();
            this.PintarCoche();
        }