Example #1
0
 public object Clone()
 {
     var newRevision = new Revision() { };
     foreach (var page in this.Pages)
     {
         var newPage = page.Clone();
         newRevision.AddPage((Page)newPage);
     }
     return newRevision;
 }
Example #2
0
 /// <summary>
 ///     Creates a draft revision from the active one. If no active revision just starts a blank draft.
 /// </summary>
 public void CreateDraft()
 {
     //IF there is already a draft revision do nothing.
     if (DraftRevision != null)
         return;
     if (ActiveRevision == null)
     {
         DraftRevision = new Revision();
     }
     if (ActiveRevision != null)
     {
         DraftRevision = (Revision) ActiveRevision.Clone();
     }
 }