public StoryTreeModel GetStoryTree(int id) { var treeModel = new StoryTreeModel(); var story = dbContext.Stories.Find(id); //todo: build tree model //public string Title { get; set; } //public string Byline { get; set; } //public StoryTreeNode Root {get; set; } return(treeModel); }
public void PrepareView() { UpdateViewTitle(); model = new StoryTreeModel(this, configuration); view.Model = model; view.ReconfigureTreeColumns(); UpdateViewData(); var mayAddSecondaryItems = ShouldEnableAddSecondaryItemCommand(); view.AddTaskCommandEnabled = mayAddSecondaryItems; view.AddTestCommandEnabled = mayAddSecondaryItems; view.AddDefectCommandEnabled = true; }