public ViewModelLocator() { _synchronizationService = new SynchronizationService(); if (!DesignerProperties.GetIsInDesignMode(new DependencyObject())) _synchronizationService.Initialize(); MessageBoardSelectionModel messageBoardSelectionModel = new MessageBoardSelectionModel(); _main = new MainViewModel(_synchronizationService.Community, messageBoardSelectionModel, _synchronizationService); }
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); }
public JoinMessageBoardViewModel(MessageBoardSelectionModel selection, Individual individual) { _selection = selection; _individual = individual; }
public MainViewModel(Individual individual, SynchronizationService synhronizationService, MessageBoardSelectionModel selection) { _individual = individual; _synhronizationService = synhronizationService; _selection = selection; }
public MainViewModel(Community community, MessageBoardSelectionModel selection, SynchronizationService synchronizationService) { _selection = selection; _community = community; _synchronizationService = synchronizationService; }
public SelectorViewModel(Individual individual, MessageBoardSelectionModel selection) { _individual = individual; _selection = selection; }