public Type GetActionType() { if (action == null) { return(null); } return(action.GetType()); }
public void SetMenuAction(MenuActionBase newAction) { if (newAction == null) { action = null; return; } if (newAction == action) { return; } action = (MenuActionBase)MenuActionBase.CreateInstance(newAction.GetType()); }