Пример #1
0
        public void AddDocumentVersion(DocumentVersion documentVersion)
        {
            int maxVersionID = _mementoList.Keys.Count == 0 ? 0 : _mementoList.Keys.Max();

            _mementoList.Add(maxVersionID + 1, documentVersion);
        }
Пример #2
0
 public void SetMemento(DocumentVersion documentVersion)
 {
     Content = documentVersion.Content;
 }