public void Dispose()
 {
     UndoRedoManager.Instance().EndTransaction(this);
 }
 public UndoTransaction(string name = "")
 {
     _name = name;
     UndoRedoManager.Instance().StartTransaction(this);
 }