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; } }
//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); }
public T DynamicMap(object routeValues, DynamicMapOptions options) { this.DynamicMap(routeValues); this.DynamicMapOptions.Merge(options); return(this as T); }