public VO_Page Clone() { VO_Page NewPage = (VO_Page)this.MemberwiseClone(); VO_Script NewScript = NewPage.Script.Clone(); NewPage.Script = NewScript; return(NewPage); }
public VO_Script Clone() { VO_Script newScript = (VO_Script)this.MemberwiseClone(); newScript.Id = Guid.NewGuid(); newScript.Lines = new List <VO_Line>(); foreach (VO_Line line in this.Lines) { IScriptable ScriptLine = line as IScriptable; VO_Line NewLine = ScriptLine.Clone() as VO_Line; newScript.Lines.Add(NewLine); } return(newScript); }
public VO_ActionOnItemScript(Guid actionId, VO_Script script) { Id = actionId; Script = script; }