Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ZonesViewModel"/> class.
 /// </summary>
 /// <param name="navigationService">The navigation service.</param>
 public ZonesViewModel(NavigationServiceEx navigationService)
 {
     Devices = new ObservableCollection <Device>();
     this.navigationService = navigationService;
     this.logger            = App.ServiceProvider.GetService(typeof(ILogger <ZonesViewModel>)) as ILogger <ZonesViewModel>;
     this.service           = App.ServiceProvider.GetService(typeof(MusicCastService)) as MusicCastService;
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DeviceDetailPageViewModel"/> class.
        /// </summary>
        /// <param name="navigationService">The navigation service.</param>
        public DeviceDetailPageViewModel(NavigationServiceEx navigationService)
        {
            this.InputList     = new ObservableCollection <Input>();
            this.FavoritesList = new ObservableCollection <Preset>();

            this.navigationService = navigationService;
            this.service           = App.ServiceProvider.GetService(typeof(MusicCastService)) as MusicCastService;


            navigationService.Navigated += NavigationService_NavigatedAsync;
        }