Beispiel #1
0
 public PagelistTreeViewModel()
 {
     _model = PagelistTreeModel.GetInstance();
     _model.LoadPageTree();
     this.SelectPageCommand = new DelegateCommand <object>(SelectPageExecute);
     searchPageName         = String.Empty;
 }
Beispiel #2
0
 public static PagelistTreeModel GetInstance()
 {
     if (_instance == null)
     {
         _instance = new PagelistTreeModel();
     }
     return(_instance);
 }
Beispiel #3
0
        public InteractionTabVM()
        {
            _ListEventAggregator.GetEvent <SelectionChangeEvent>().Subscribe(SelectionChangeEventHandler);
            _ListEventAggregator.GetEvent <UpdatePageTreeEvent>().Subscribe(UpdatePageTreeEventHandler);
            _ListEventAggregator.GetEvent <UpdateLanguageEvent>().Subscribe(UpdateLanguageHandler);

            _model                  = PagelistTreeModel.GetInstance();
            LinkPageCommand         = new DelegateCommand <object>(LinkPageExecute);
            MouseOverObjectCommand  = new DelegateCommand <IUniqueObject>(MouserOverObjectExecute);
            MouseLeaveObjectCommand = new DelegateCommand <object>(MouseLeaveOjectExecute);
            WidgetList              = new RangeObservableCollection <WidgetNode>();
        }