protected virtual void LoadData(IStoryEntityObject target) { target.Name = Name; target.Memo = Memo; target.BeginTime = BeginTime; target.EndTime = EndTime; ParameterList.ForEach(v => target.ParameterList.Add(v.GetData())); NoteList.ForEach(v => target.NoteList.Add(v.Clone() as INote)); //KeyWordList.ForEach(v => target.KeyWordList.Add(v.ToString())); MeasureList.ForEach(v => target.MeasureList.Add(v.Clone() as IMeasure)); }
public override ICopySupportObject Clone() { var o = new StructureDiagram() { Memo = Memo, Name = Name, IsTimeSensitive = IsTimeSensitive, CurrentTime = CurrentTime }; NoteList.ForEach(v => o.NoteList.Add(v.Clone() as INote)); NodeList.ForEach(v => o.NodeList.Add(v.Clone() as INode)); ConnectionList.ForEach(v => o.ConnectionList.Add(v.Clone() as IConnection)); return(o); }
public override ICopySupportObject Clone() { var o = new FateDiagram() { BeginTime = BeginTime, EndTime = EndTime, Memo = Memo, Name = Name, }; NodeList.ForEach(v => o.NodeList.Add(v.Clone() as INode)); NoteList.ForEach(v => o.NoteList.Add(v.Clone() as INote)); ConnectionList.ForEach(v => o.ConnectionList.Add(v.Clone() as IConnection)); TimeSeparateList.ForEach(v => o.TimeSeparateList.Add(new TimeSeparate() { BeginTime = v.BeginTime, EndTime = v.EndTime })); TrackList.ForEach(v => o.TrackList.Add(v.Clone() as ITrack)); return(o); }
//List<IRole> _RoleList = new List<IRole>(); //public List<IRole> RoleList { get { return _RoleList; } } public ICopySupportObject Clone() { var o = new Story() { Name = Name, Memo = Memo, BeginTime = BeginTime, EndTime = EndTime, Author = Author, StoryVersion = StoryVersion }; //o.CurrentUniverse = CurrentUniverse.Clone() as IUniverse; ActorList.ForEach(v => o.ActorList.Add(v.Clone() as IActor)); StuffList.ForEach(v => o.StuffList.Add(v.Clone() as IStuff)); ExpressList.ForEach(v => o.ExpressList.Add(v.Clone() as IExpress)); NoteList.ForEach(v => o.NoteList.Add(v.Clone() as INote)); EventList.ForEach(v => o.EventList.Add(v.Clone() as IEvent)); RelationList.ForEach(v => o.RelationList.Add(v.Clone() as IRelation)); TaskList.ForEach(v => o.TaskList.Add(v.Clone() as ITask)); GroupList.ForEach(v => o.GroupList.Add(v.Clone() as IGroup)); StructureDiagramList.ForEach(v => o.StructureDiagramList.Add(v.Clone() as IStructureDiagram)); return(o); }