private int GetSubitemIndex(LayerAllowedOperations op) { for (var i = 0; i < _allowed.Length; i++) { if (_allowed[i] == op) { return(i); } } return(0); }
public void RemoveAllowedOperation(LayerAllowedOperations op) { AllowedOperations &= LayerAllowedOperations.All ^ op; }
public void AddAllowedOperation(LayerAllowedOperations op) { AllowedOperations |= op; }