public ImmediateEditingScope(ModelTreeManager modelTreeManager, UndoEngine.Bookmark undoEngineBookmark)
     : base(modelTreeManager, null)
 {
     Fx.Assert(modelTreeManager != null, "modelTreeManager should never be null!");
     Fx.Assert(undoEngineBookmark != null, "undoEngineBookmark should never be null!");
     this.modelTreeManager = modelTreeManager;
     this.undoEngineBookmark = undoEngineBookmark;
 }
Esempio n. 2
0
 public ImmediateEditingScope(ModelTreeManager modelTreeManager, UndoEngine.Bookmark undoEngineBookmark)
     : base(modelTreeManager, null)
 {
     Fx.Assert(modelTreeManager != null, "modelTreeManager should never be null!");
     Fx.Assert(undoEngineBookmark != null, "undoEngineBookmark should never be null!");
     this.modelTreeManager   = modelTreeManager;
     this.undoEngineBookmark = undoEngineBookmark;
 }
 protected override void OnRevert(bool finalizing)
 {
     this.undoEngineBookmark.RollbackBookmark();
     this.undoEngineBookmark = null;
     this.modelTreeManager.OnEditingScopeReverted(this);
 }
 protected override void OnComplete()
 {
     this.undoEngineBookmark.CommitBookmark();
     this.undoEngineBookmark = null;
     this.modelTreeManager.OnEditingScopeCompleted(this);
 }
Esempio n. 5
0
 protected override void OnRevert(bool finalizing)
 {
     this.undoEngineBookmark.RollbackBookmark();
     this.undoEngineBookmark = null;
     this.modelTreeManager.OnEditingScopeReverted(this);
 }
Esempio n. 6
0
 protected override void OnComplete()
 {
     this.undoEngineBookmark.CommitBookmark();
     this.undoEngineBookmark = null;
     this.modelTreeManager.OnEditingScopeCompleted(this);
 }