public SerializedProjectMomento(Guid projectId, int version, IMomento momento) { ProjectId = projectId; Version = version; SerializedMomento = JsonConvert.SerializeObject(momento, _jsonSerializerSettings); Id = Guid.NewGuid(); }
public void SetMomento(IMomento momento) { Strokes = new StrokeCollection((Stroke[])momento.State); }
public void SetMomento(IMomento <Stock> momento) { momento.SetState(Data); }