Ejemplo n.º 1
0
        public void RecuperarMemento()
        {
            var filename = Path.Combine(
                Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)
                , @"Historial\registro.txt");

            this.MementoPersona = SerializerHelper.DeSerializeObject <MementoPersona>(filename);
        }
Ejemplo n.º 2
0
 public void Restaurar(MementoPersona m)
 {
     this.Rut      = m.Rut;
     this.Nombre   = m.Nombre;
     this.Apellido = m.Apellido;
     this.FechaNac = m.FechaNac;
     this.Email    = m.Email;
     this.Telefono = m.Telefono;
     this.Sexo     = m.Sexo;
 }
Ejemplo n.º 3
0
        public MementoPersona Guardar()
        {
            MementoPersona m = new MementoPersona();

            m.Rut      = this.Rut;
            m.Nombre   = this.Nombre;
            m.Apellido = this.Apellido;
            m.FechaNac = this.FechaNac;
            m.Email    = this.Email;
            m.Telefono = this.Telefono;
            m.Sexo     = this.Sexo;
            return(m);
        }
Ejemplo n.º 4
0
 public Cuidador()
 {
     this.MementoPersona = null;
 }