Exemple #1
0
    void GenerateParametersFromIndex(int index)
    {
        string label = actionDropDown.options[index].text;

        SmartItemAction selectedAction = null;

        foreach (SmartItemAction action in selectedComponent.model.actions)
        {
            if (action.label == label)
            {
                selectedAction = action;
                break;
            }
        }

        smartItemListView.SetEntityList(actionEvent.entityList);
        smartItemListView.SetSmartItemParameters(selectedAction.parameters);
    }
    private void GenerateParametersFromIndex(int index)
    {
        string label = actionDropDown.options[index].text;

        SmartItemAction selectedAction = null;

        foreach (SmartItemAction action in selectedEntity.GetSmartItemActions())
        {
            if (action.label == label)
            {
                selectedAction = action;
                break;
            }
        }

        actionEvent.smartItemActionable.actionId = selectedAction.id;
        smartItemListView.SetEntityList(actionEvent.entityList);
        smartItemListView.SetSmartItemParameters(selectedAction.parameters, actionEvent.smartItemActionable.values);
    }