예제 #1
0
        public EncodedLocation(ILocationResolver resolver, object location)
        {
            if (resolver == null && !(location is LocationInfo))
            {
                throw new ArgumentNullException(nameof(resolver));
            }

            Resolver = resolver;
            Location = location;
        }
예제 #2
0
        public EncodedLocation(ILocationResolver resolver, object location)
        {
            if (resolver == null && !(location is LocationInfo))
            {
                throw new ArgumentNullException(nameof(resolver));
            }

            for (var r = resolver; r != null; r = r.GetAlternateResolver())
            {
                resolver = r;
            }
            Debug.Assert(resolver != null);

            Resolver = resolver;
            Location = location;
        }
예제 #3
0
 public DefaultTranslationErrorHandler(ILocationResolver locationResolver)
 {
     this.locationResolver = locationResolver;
 }
예제 #4
0
 public EncodedLocation(ILocationResolver resolver, object location)
 {
     Resolver = resolver;
     Location = location;
 }
예제 #5
0
 public ForecastCollectionViewModel(IEnumerable <IForecastDownloader> forecastDownloaders, ILocationResolver locationResolver)
 {
     StartForecastDownloads   = new RelayCommand(() => InitializeForecastsDownloads());
     this.forecastDownloaders = forecastDownloaders;
     this.locationResolver    = locationResolver;
 }