示例#1
0
        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;
 }
示例#3
0
 public StoryViewModel(Story story)
 {
     Story = story;
     CurrentScene = Story.StartScene;
     Scenes = _builder.StorylineBuilder.GetScenes(CurrentStoryline);
 }