public void ReleaseExclusiveOperation() { currentOperation = null; }
public bool IsExclusiveOperation(IEditorOperation operation) { return(ReferenceEquals(currentOperation, operation)); }
public bool TakeExclusiveOperation(IEditorOperation operation) { return(currentOperation == null && (currentOperation = operation) != null); }