Пример #1
0
 public Type GetActionType()
 {
     if (action == null)
     {
         return(null);
     }
     return(action.GetType());
 }
Пример #2
0
        public void SetMenuAction(MenuActionBase newAction)
        {
            if (newAction == null)
            {
                action = null;
                return;
            }

            if (newAction == action)
            {
                return;
            }

            action = (MenuActionBase)MenuActionBase.CreateInstance(newAction.GetType());
        }