Exemplo n.º 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);
        }
Exemplo n.º 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);
 }