private void SetDefaultContext() { libraryViewModel.Library = Library.Current = new Library(); projectViewModel.Library = libraryViewModel; Story story = new Story(); StoryViewModel storyModel = new StoryViewModel(story); projectViewModel.Story = storyModel; projectViewModel.StoryRendererViewModel = new StoryRendererViewModel(story); this.DataContext = projectViewModel; }
public StoryRendererViewModel(Story story) { Story = story; }
public StoryViewModel(Story story) { Story = story; CurrentScene = Story.StartScene; Scenes = _builder.StorylineBuilder.GetScenes(CurrentStoryline); }