public override void LoadFromFolder(string folderPath) { string stepName = Path.GetDirectoryName(folderPath); string cardFilePath = Path.Combine(folderPath, stepCardFileName); this.LoadFromDataList(File.ReadAllLines(cardFilePath).ToList()); Events.LoadFromFolder(folderPath); ActionList.LoadFromFolder(folderPath); if (innerData.Contains(formElementsMark)) { FormElements = new WizardStepFormElementList(); FormElements.LoadFromFolder(folderPath); } }
public override void LoadFromFolder(string folderPath) { objectName = WSConstants.Objects.Wizard; objectEnding = WSConstants.Markup.End; // var di = new DirectoryInfo(fPath); // Code.DecodedValue = di.Name; string cardFilePath = Path.Combine(folderPath, wizardCardFileName); workInnerData = File.ReadAllLines(cardFilePath).ToList(); Params.LoadFromFolder(folderPath); Steps.LoadFromFolder(folderPath); Events.LoadFromFolder(folderPath); loaded = true; }
public override void LoadFromFolder(string folderPath) { this.objectName = WSConstants.Objects.Action; this.objectEnding = WSConstants.Markup.End; string actionFolder = Path.Combine(folderPath, ActionTypeName); if (Directory.Exists(actionFolder)) { string actionCardFilePath = Path.Combine(actionFolder, actionCardFileName); workInnerData = File.ReadAllLines(actionCardFilePath).ToList(); Events.LoadFromFolder(actionFolder); } else { Events = null; } }