Beispiel #1
0
        public static void RegisterAction(IActionItem action)
        {
            if (actions.ContainsKey(action.GetItemId()))
                throw new Exception(String.Format("Action {0} has a duplicate ItemId {1}.", action.GetType().Name, action.GetItemId()));

            actions.Add(action.GetItemId(), action);
        }
Beispiel #2
0
        public static void RegisterAction(IActionItem action)
        {
            if (actions.ContainsKey(action.GetItemId()))
            {
                throw new Exception(String.Format("Action {0} has a duplicate ItemId {1}.", action.GetType().Name, action.GetItemId()));
            }

            actions.Add(action.GetItemId(), action);
        }