Пример #1
0
        public UniverseViewModel(Universe model, Database database)
        {
            Model    = model;
            Database = database;

            model.PropertyChanged += Model_PropertyChanged;

            Categories = new SortBySortIndexBindingList <CategoryViewModel>();
            Stories    = new BindingList <StoryViewModel>();
            SubItems   = new SortBySortIndexBindingList <IUniverseSubItem>();

            SearchViewModel = new SearchViewModel();
            SearchViewModel.SelectedUniverse = this;
            SpellcheckDictionary             = new SpellcheckDictionary(this);

            MarkdownTree = new MarkdownTree(this);
            MarkdownTree.Load();
            FileBrowserViewModel = new FileBrowserViewModel(this);
            FileBrowserViewModel.Load();

            TicketTrackerViewModel = new TicketTrackerViewModel(this);
            TicketTrackerViewModel.Load();
        }
Пример #2
0
 public TicketViewModel(Ticket model, TicketTrackerViewModel parent)
 {
     Model           = model;
     TicketTrackerVm = parent;
 }