public LandingPageDetailViewModel(ISystemControlClient systemControlService, INavigationService navigationService, IApplicationPropertiesWrapper appPropertiesWrapper) { if (systemControlService == null) { throw new ArgumentNullException("systemControlService"); } if (navigationService == null) { throw new ArgumentNullException("navigationService"); } if (appPropertiesWrapper == null) { throw new ArgumentNullException("appPropertiesWrapper"); } _systemControlService = systemControlService; _navigationService = navigationService; _appPropertiesWrapper = appPropertiesWrapper; var lastKnownIP = _appPropertiesWrapper.GetValue <string>(ApplicationStrings.LastKnownIPValue); if (!string.IsNullOrEmpty(lastKnownIP)) { IP = lastKnownIP; } else { IP = "192.168.0.27"; } }
public MenuItemBuilder(INavigationService navigationService, ISystemControlClient systemControl) { if (navigationService == null) { throw new ArgumentNullException("navigationService"); } if (systemControl == null) { throw new ArgumentNullException("systemControl"); } _navigationService = navigationService; _systemControl = systemControl; }
public MainYouTubeViewModel(IYouTubeClient youTubeService, ISystemControlClient systemService) { if (youTubeService == null) { throw new ArgumentNullException("youTubeService"); } if (systemService == null) { throw new ArgumentNullException("systemService"); } _youTubeService = youTubeService; _systemService = systemService; VolumeValue = _systemService.GetVolume(); _youTubeService.OpenYoutube(); Task.Run(async() => { IsBusy = true; await RefreshData(4000); }); }