예제 #1
0
        public ViewModelLocator()
        {
            _synchronizationService = new SynchronizationService();
            if (!DesignerProperties.GetIsInDesignMode(new DependencyObject()))
                _synchronizationService.Initialize();

            MessageBoardSelectionModel messageBoardSelectionModel = new MessageBoardSelectionModel();
            _main = new MainViewModel(_synchronizationService.Community, messageBoardSelectionModel, _synchronizationService);
        }
예제 #2
0
 public ViewModelLocator()
 {
     _synchronizationService = new SynchronizationService();
     if (!DesignerProperties.IsInDesignTool)
         _synchronizationService.Initialize();
     _selection = new MessageBoardSelectionModel();
     _main = new MainViewModel(_synchronizationService.Individual, _synchronizationService, _selection);
     _join = new JoinMessageBoardViewModel(_selection, _synchronizationService.Individual);
 }