public void Restaurar(MementoPersona m) { this.Rut = m.Rut; this.Nombre = m.Nombre; this.Apellido = m.Apellido; this.FechaNac = m.FechaNac; }
public void RecuperarMemento() { var filename = Path.Combine( Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) , @"Historial\registro.txt"); this.MementoPersona = SerializerHelper.DeSerializeObject <MementoPersona>(filename); }
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); }
public Cuidador() { this.MementoPersona = null; }