private void GenerateStorylinePlotElementConnections(Dictionary <RedYarn.PlotElement, PlotElementViewModel> plotElementDictionary, Dictionary <RedYarn.Storyline, StorylineViewModel> storylineDictionary) { foreach (var storyline in storylineDictionary.Keys) { foreach (var plotElement in storyline.PlotElements) { StorylinePlotElementConnections.Add(new ConnectionViewModel() { FromNodeId = storylineDictionary[storyline].Id, ToNodeId = plotElementDictionary[plotElement].Id }); } } }