Example #1
0
 public void Restaurar(MementoPersona m)
 {
     this.Rut      = m.Rut;
     this.Nombre   = m.Nombre;
     this.Apellido = m.Apellido;
     this.FechaNac = m.FechaNac;
 }
Example #2
0
        public void RecuperarMemento()
        {
            var filename = Path.Combine(
                Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)
                , @"Historial\registro.txt");

            this.MementoPersona = SerializerHelper.DeSerializeObject <MementoPersona>(filename);
        }
Example #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;
            return(m);
        }
Example #4
0
 public Cuidador()
 {
     this.MementoPersona = null;
 }