public MainPageViewModel( INavigationService navigationService, ISpeechService speechService, ITivoConnectionService connectionService, MyShowsViewModel myShowsViewModel, ChannelListViewModel channelListViewModel, ToDoListViewModel toDoListViewModel, SearchViewModel searchViewModel) { this.navigationService = navigationService; this.speechService = speechService; this.connectionService = connectionService; this.myShowsViewModel = myShowsViewModel; this.channelListViewModel = channelListViewModel; this.toDoListViewModel = toDoListViewModel; this.searchViewModel = searchViewModel; connectionService.PropertyChanged += OnConnectionServicePropertyChanged; this.channelListViewModel.DisplayName = "guide"; this.channelListViewModel.PropertyChanged += OnViewModelPropertyChanged; this.Items.Add(channelListViewModel); this.toDoListViewModel.DisplayName = "scheduled"; this.toDoListViewModel.PropertyChanged += OnViewModelPropertyChanged; this.Items.Add(toDoListViewModel); this.myShowsViewModel.DisplayName = "my shows"; this.myShowsViewModel.PropertyChanged += OnViewModelPropertyChanged; this.Items.Add(myShowsViewModel); this.searchViewModel.DisplayName = "search"; this.searchViewModel.PropertyChanged += OnViewModelPropertyChanged; this.Items.Add(searchViewModel); this.ActivateItem(this.channelListViewModel); }
public ShowContainerShowsPageViewModel(MyShowsViewModel myShowsViewModel) { this.Content = myShowsViewModel; myShowsViewModel.PropertyChanged += OnViewModelPropertyChanged; }