Esempio n. 1
0
 public WizardStep()
 {
     Name       = new WizardString();
     Title      = new WizardString();
     Events     = new WizardEventArray();
     ActionList = new WizardActionList();
 }
Esempio n. 2
0
        public override void ExtractUsableData()
        {
            int dataIndex = 0;

            while (dataIndex < workInnerData.Count)
            {
                string line = workInnerData[dataIndex];
                string name, value;
                if (StringUtils.GetFieldPair(line, out name, out value))
                {
                    switch (name)
                    {
                    case WSConstants.Fields.StepName:
                        this.Name.PowerLoad(value, workInnerData, dataIndex);
                        workInnerData[dataIndex] = stepNameMark;
                        break;

                    case WSConstants.Fields.Title:
                        this.Title.PowerLoad(value, workInnerData, dataIndex);
                        workInnerData[dataIndex] = stepTitleMark;
                        break;

                    case WSConstants.Fields.Events:
                        this.Events.PowerLoad(value, workInnerData, dataIndex);
                        workInnerData[dataIndex] = eventsPositionMark;
                        break;

                    default:
                        break;
                    }
                }
                else
                {
                    switch (line)
                    {
                    case WSConstants.Objects.StepFormElementList:
                        FormElements = new WizardStepFormElementList();
                        FormElements.LoadFromDataList(StringUtils.PickObject(workInnerData, dataIndex));
                        workInnerData.Insert(dataIndex, formElementsMark);
                        break;

                    case WSConstants.Objects.ActionList:
                        ActionList = new WizardActionList();
                        ActionList.LoadFromDataList(StringUtils.PickObject(workInnerData, dataIndex));
                        workInnerData.Insert(dataIndex, actionsMark);
                        break;

                    default:
                        break;
                    }
                }
                dataIndex++;
            }
        }