Exemple #1
0
        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);
        }
Exemple #2
0
        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;
        }
 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;
 }