public ViewModelLocator() { _synchronizationService = new SynchronizationService(); if (!DesignMode) _synchronizationService.Initialize(); else _synchronizationService.InitializeDesignMode(); _selection = new Models.MessageBoardSelectionModel(); _selection.SelectedShare = _synchronizationService.Individual.Shares .FirstOrDefault(); }
public MainViewModel(Community community, Individual individual, MessageBoardSelectionModel selection) { _community = community; _individual = individual; _selection = selection; }
public MessageBoardViewModel(Share share, MessageBoardSelectionModel selection) { _share = share; _selection = selection; }