public void LoadGraph(StoryType storyType) { Window g = null; switch (storyType) { case StoryType.STORYGRAPH: g = new Storygraph(_dt, IsForceSelected, new ForceParameters() { Iterations = this.Iterations, Segments = this.Segments }); break; case StoryType.STORYLINES: g = new Storylines(_dt, IsUncertaintySelected); break; case StoryType.MAP: g = new E2Charts.Map(_dt); _graphList.Add(g); g.Show(); break; case StoryType.TIMELINE: g = new Timeline(_dt); break; } _graphList.Add(g); g.Show(); }
public ClassOrigin(string cls, IObjectStore data) : this() { Class = cls; Name = data.GetString("name"); Weighting = data.GetInteger("weight"); Traits.Add(data.GetListOptional("traits")); Storylines.Add(data.GetListOptional("storylines")); }
/// <summary> /// Copy constructor /// </summary> /// <param name="viewModel">The viewmodel to copy.</param> public DiagramViewModel(DiagramViewModel viewModel) { Id = viewModel.Id; Name = viewModel.Name; Characters.AddRange(viewModel.Characters); Storylines.AddRange(viewModel.Storylines); PlotElements.AddRange(viewModel.PlotElements); Relationships.AddRange(viewModel.Relationships); StorylineCharacterConnections.AddRange(viewModel.StorylineCharacterConnections); StorylinePlotElementConnections.AddRange(viewModel.StorylinePlotElementConnections); CharacterPlotElementConnections.AddRange(viewModel.CharacterPlotElementConnections); }