Exemple #1
0
 protected virtual MenuActionItemBase CreateSingleChoiceactionObject(SingleChoiceAction singleChoiceAction)
 {
     if (singleChoiceAction.ItemType == SingleChoiceActionItemType.ItemIsMode)
     {
         if (singleChoiceAction.IsHierarchical())
         {
             return(new SingleChoiceActionItemAsHierarchicalModeActionMenuItem(singleChoiceAction));
         }
         else
         {
             SingleChoiceActionAsModeMenuActionItem actionObject = new SingleChoiceActionAsModeMenuActionItem(singleChoiceAction);
             return(actionObject);
         }
     }
     else
     {
         SingleChoiceActionItemAsOperationActionMenuItem menuItem = new SingleChoiceActionItemAsOperationActionMenuItem(singleChoiceAction);
         return(menuItem);
     }
 }
 protected virtual MenuActionItemBase CreateSingleChoiceactionObject(SingleChoiceAction singleChoiceAction)
 {
     if (singleChoiceAction.ItemType == SingleChoiceActionItemType.ItemIsMode)
     {
         if (singleChoiceAction.IsHierarchical())
         {
             return new SingleChoiceActionItemAsHierarchicalModeActionMenuItem(singleChoiceAction);
         }
         else
         {
             SingleChoiceActionAsModeMenuActionItem actionObject = new SingleChoiceActionAsModeMenuActionItem(singleChoiceAction);
             return actionObject;
         }
     }
     else
     {
         SingleChoiceActionItemAsOperationActionMenuItem menuItem = new SingleChoiceActionItemAsOperationActionMenuItem(singleChoiceAction);
         return menuItem;
     }
 }