Beispiel #1
0
 /// <summary>
 /// 恢复指定的状态
 /// </summary>
 /// <param name="memento"></param>
 public void RecoverMemento(WordMemento memento)
 {
     if (memento != null)
     {
         this.Content = memento.Content;
         this.Titile = memento.Titile;
         this.Description = memento.Description;
     }
 }
Beispiel #2
0
 /// <summary>
 /// 恢复指定的状态
 /// </summary>
 /// <param name="memento"></param>
 public void RecoverMemento(WordMemento memento)
 {
     if (memento != null)
     {
         this.Content     = memento.Content;
         this.Titile      = memento.Titile;
         this.Description = memento.Description;
     }
 }