Beispiel #1
0
 public bool IsActionAllowed(ActionItemObject pAction)
 {
     if (_actions.ContainsKey(pAction))
     {
         return(_actions[pAction]);
     }
     return(true);
 }
Beispiel #2
0
 public void SetActionAllowed(ActionItemObject pAction, bool pAllowed)
 {
     if (_actions.ContainsKey(pAction))
     {
         _actions[pAction] = pAllowed;
     }
     else
     {
         _actions.Add(pAction, pAllowed);
     }
 }