Example #1
0
 internal void Merge(DynamicMapOptions options)
 {
     if (!string.IsNullOrEmpty(options.Url))
     {
         this.Url = options.Url;
     }
     if (!string.IsNullOrEmpty(options.DataLoaded))
     {
         this.DataLoaded = options.DataLoaded;
     }
     if (!string.IsNullOrEmpty(options.DisplayData))
     {
         this.DisplayData = options.DisplayData;
     }
     if (options.AutoLoad.HasValue)
     {
         this.AutoLoad = options.AutoLoad;
     }
 }
Example #2
0
 internal void Merge(DynamicMapOptions options)
 {
     if (!string.IsNullOrEmpty(options.Url))
     {
         this.Url = options.Url;
     }
     if (!string.IsNullOrEmpty(options.DataLoaded))
     {
         this.DataLoaded = options.DataLoaded;
     }
     if (!string.IsNullOrEmpty(options.DisplayData))
     {
         this.DisplayData = options.DisplayData;
     }
     if (options.AutoLoad.HasValue)
     {
         this.AutoLoad = options.AutoLoad;
     }
 }
Example #3
0
        //public T DynamicMap(object routeValues, string dataLoaded)
        //{
        //    this.DynamicMap(routeValues);
        //    this.DynamicMapOptions.DataLoaded = dataLoaded;
        //    return this as T;
        //}

        public T DynamicMap(DynamicMapOptions options)
        {
            this.DynamicMapOptions = options;
            return(this as T);
        }
Example #4
0
 public T DynamicMap(object routeValues, DynamicMapOptions options)
 {
     this.DynamicMap(routeValues);
     this.DynamicMapOptions.Merge(options);
     return(this as T);
 }