Inheritance: ActionsPaneExtendedItemData
Example #1
0
 private void ReadAction(ActionData data, ref int actionIndex)
 {
     data.ExecuteSync = this._executeSync[actionIndex];
     data.State = this._state[actionIndex];
     actionIndex++;
 }
Example #2
0
        private ActionsPaneItemData Read(ref int index, ref int exItemIndex, ref int actionIndex, ref int colIndex)
        {
            ActionsPaneItemData data = null;
            switch (this._type[index])
            {
                case ActionsPaneRootItemType.Separator:
                    data = new ActionSeparatorItemData();
                    break;

                case ActionsPaneRootItemType.Action:
                    data = new ActionData();
                    break;

                case ActionsPaneRootItemType.Collection:
                    data = new ActionsPaneItemCollectionData();
                    break;
            }
            this.ReadActionsPaneItem(data, ref index);
            ActionsPaneExtendedItemData data2 = data as ActionsPaneExtendedItemData;
            if (data2 != null)
            {
                this.ReadExtendedActionsPaneItem(data2, ref exItemIndex);
                ActionData data3 = data2 as ActionData;
                if (data3 != null)
                {
                    this.ReadAction(data3, ref actionIndex);
                    return data;
                }
                this.ReadCollection((ActionsPaneItemCollectionData) data2, ref index, ref exItemIndex, ref actionIndex, ref colIndex);
            }
            return data;
        }