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