internal override Hashtable ToHashtable() { Hashtable hashtables = new Hashtable(); bool? allowPointSelect = this.AllowPointSelect; bool? allowPointSelectDefaultValue = this.AllowPointSelect_DefaultValue; if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true)) { hashtables.Add("allowPointSelect", this.AllowPointSelect); } if (this.Animation.IsDirty()) { hashtables.Add("animation", this.Animation.ToJSON()); } double?animationLimit = this.AnimationLimit; double?animationLimitDefaultValue = this.AnimationLimit_DefaultValue; if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true)) { hashtables.Add("animationLimit", this.AnimationLimit); } if (this.BorderColor != this.BorderColor_DefaultValue) { hashtables.Add("borderColor", this.BorderColor); } animationLimitDefaultValue = this.BorderRadius; animationLimit = this.BorderRadius_DefaultValue; if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true)) { hashtables.Add("borderRadius", this.BorderRadius); } animationLimit = this.BorderWidth; animationLimitDefaultValue = this.BorderWidth_DefaultValue; if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true)) { hashtables.Add("borderWidth", this.BorderWidth); } if (this.ClassName != this.ClassName_DefaultValue) { hashtables.Add("className", this.ClassName); } if (this.Color != this.Color_DefaultValue) { hashtables.Add("color", this.Color); } allowPointSelectDefaultValue = this.ColorByPoint; allowPointSelect = this.ColorByPoint_DefaultValue; if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true)) { hashtables.Add("colorByPoint", this.ColorByPoint); } animationLimitDefaultValue = this.ColorIndex; animationLimit = this.ColorIndex_DefaultValue; if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true)) { hashtables.Add("colorIndex", this.ColorIndex); } if (this.Colors != this.Colors_DefaultValue) { hashtables.Add("colors", this.Colors); } animationLimit = this.Colsize; animationLimitDefaultValue = this.Colsize_DefaultValue; if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true)) { hashtables.Add("colsize", this.Colsize); } animationLimitDefaultValue = this.CropThreshold; animationLimit = this.CropThreshold_DefaultValue; if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true)) { hashtables.Add("cropThreshold", this.CropThreshold); } if (this.Cursor != this.Cursor_DefaultValue) { HeatmapSeriesCursor cursor = this.Cursor; hashtables.Add("cursor", Highcharts.FirstCharacterToLower(cursor.ToString())); } if (this.Data.Any <HeatmapSeriesData>()) { hashtables.Add("data", base.HashifyList(this.Data)); } if (this.DataLabels.IsDirty()) { hashtables.Add("dataLabels", this.DataLabels.ToHashtable()); } if (this.Description != this.Description_DefaultValue) { hashtables.Add("description", this.Description); } allowPointSelect = this.EnableMouseTracking; allowPointSelectDefaultValue = this.EnableMouseTracking_DefaultValue; if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true)) { hashtables.Add("enableMouseTracking", this.EnableMouseTracking); } if (this.Events.IsDirty()) { hashtables.Add("events", this.Events.ToHashtable()); } allowPointSelectDefaultValue = this.GetExtremesFromAll; allowPointSelect = this.GetExtremesFromAll_DefaultValue; if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true)) { hashtables.Add("getExtremesFromAll", this.GetExtremesFromAll); } if (this.Id != this.Id_DefaultValue) { hashtables.Add("id", this.Id); } animationLimit = this.Index; animationLimitDefaultValue = this.Index_DefaultValue; if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true)) { hashtables.Add("index", this.Index); } if (this.Keys != this.Keys_DefaultValue) { hashtables.Add("keys", this.Keys); } animationLimitDefaultValue = this.LegendIndex; animationLimit = this.LegendIndex_DefaultValue; if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true)) { hashtables.Add("legendIndex", this.LegendIndex); } if (this.LinkedTo != this.LinkedTo_DefaultValue) { hashtables.Add("linkedTo", this.LinkedTo); } animationLimit = this.MaxPointWidth; animationLimitDefaultValue = this.MaxPointWidth_DefaultValue; if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true)) { hashtables.Add("maxPointWidth", this.MaxPointWidth); } if (this.Name != this.Name_DefaultValue) { hashtables.Add("name", this.Name); } if (this.Point.IsDirty()) { hashtables.Add("point", this.Point.ToHashtable()); } animationLimitDefaultValue = this.Rowsize; animationLimit = this.Rowsize_DefaultValue; if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true)) { hashtables.Add("rowsize", this.Rowsize); } allowPointSelect = this.Selected; allowPointSelectDefaultValue = this.Selected_DefaultValue; if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true)) { hashtables.Add("selected", this.Selected); } if (this.Shadow != this.Shadow_DefaultValue) { hashtables.Add("shadow", this.Shadow); } allowPointSelectDefaultValue = this.ShowCheckbox; allowPointSelect = this.ShowCheckbox_DefaultValue; if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true)) { hashtables.Add("showCheckbox", this.ShowCheckbox); } allowPointSelect = this.ShowInLegend; allowPointSelectDefaultValue = this.ShowInLegend_DefaultValue; if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true)) { hashtables.Add("showInLegend", this.ShowInLegend); } if (this.States.IsDirty()) { hashtables.Add("states", this.States.ToHashtable()); } allowPointSelectDefaultValue = this.StickyTracking; allowPointSelect = this.StickyTracking_DefaultValue; if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true)) { hashtables.Add("stickyTracking", this.StickyTracking); } if (this.Tooltip.IsDirty()) { hashtables.Add("tooltip", this.Tooltip.ToHashtable()); } animationLimit = this.TurboThreshold; animationLimitDefaultValue = this.TurboThreshold_DefaultValue; if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true)) { hashtables.Add("turboThreshold", this.TurboThreshold); } if (this.Type != this.Type_DefaultValue) { HeatmapSeriesType type = this.Type; hashtables.Add("type", Highcharts.FirstCharacterToLower(type.ToString())); } allowPointSelect = this.Visible; allowPointSelectDefaultValue = this.Visible_DefaultValue; if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true)) { hashtables.Add("visible", this.Visible); } if (this.XAxis != this.XAxis_DefaultValue) { hashtables.Add("xAxis", this.XAxis); } if (this.YAxis != this.YAxis_DefaultValue) { hashtables.Add("yAxis", this.YAxis); } animationLimitDefaultValue = this.ZIndex; animationLimit = this.ZIndex_DefaultValue; if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true)) { hashtables.Add("zIndex", this.ZIndex); } if (this.ZoneAxis != this.ZoneAxis_DefaultValue) { hashtables.Add("zoneAxis", this.ZoneAxis); } if (this.Zones.IsDirty()) { hashtables.Add("zones", this.Zones.ToHashtable()); } return(hashtables); }
public HeatmapSeries() { bool?nullable = new bool?(false); this.AllowPointSelect_DefaultValue = nullable; this.AllowPointSelect = nullable; Highsoft.Web.Mvc.Charts.Animation animation = new Highsoft.Web.Mvc.Charts.Animation() { Enabled = true }; Highsoft.Web.Mvc.Charts.Animation animation1 = animation; this.Animation_DefaultValue = animation; this.Animation = animation1; double?nullable1 = null; this.AnimationLimit_DefaultValue = nullable1; this.AnimationLimit = nullable1; string str = "#ffffff"; string str1 = str; this.BorderColor_DefaultValue = str; this.BorderColor = str1; nullable1 = new double?(0); this.BorderRadius_DefaultValue = nullable1; this.BorderRadius = nullable1; nullable1 = new double?((double)1); this.BorderWidth_DefaultValue = nullable1; this.BorderWidth = nullable1; string str2 = ""; str1 = str2; this.ClassName_DefaultValue = str2; this.ClassName = str1; string str3 = "null"; str1 = str3; this.Color_DefaultValue = str3; this.Color = str1; nullable = new bool?(false); this.ColorByPoint_DefaultValue = nullable; this.ColorByPoint = nullable; nullable1 = null; this.ColorIndex_DefaultValue = nullable1; this.ColorIndex = nullable1; List <string> strs = new List <string>(); List <string> strs1 = strs; this.Colors_DefaultValue = strs; this.Colors = strs1; nullable1 = new double?((double)1); this.Colsize_DefaultValue = nullable1; this.Colsize = nullable1; nullable1 = new double?((double)50); this.CropThreshold_DefaultValue = nullable1; this.CropThreshold = nullable1; int num = 0; HeatmapSeriesCursor heatmapSeriesCursor = (HeatmapSeriesCursor)num; this.Cursor_DefaultValue = (HeatmapSeriesCursor)num; this.Cursor = heatmapSeriesCursor; List <HeatmapSeriesData> heatmapSeriesDatas = new List <HeatmapSeriesData>(); List <HeatmapSeriesData> heatmapSeriesDatas1 = heatmapSeriesDatas; this.Data_DefaultValue = heatmapSeriesDatas; this.Data = heatmapSeriesDatas1; HeatmapSeriesDataLabels heatmapSeriesDataLabel = new HeatmapSeriesDataLabels(); HeatmapSeriesDataLabels heatmapSeriesDataLabel1 = heatmapSeriesDataLabel; this.DataLabels_DefaultValue = heatmapSeriesDataLabel; this.DataLabels = heatmapSeriesDataLabel1; string str4 = "undefined"; str1 = str4; this.Description_DefaultValue = str4; this.Description = str1; nullable = new bool?(true); this.EnableMouseTracking_DefaultValue = nullable; this.EnableMouseTracking = nullable; HeatmapSeriesEvents heatmapSeriesEvent = new HeatmapSeriesEvents(); HeatmapSeriesEvents heatmapSeriesEvent1 = heatmapSeriesEvent; this.Events_DefaultValue = heatmapSeriesEvent; this.Events = heatmapSeriesEvent1; nullable = new bool?(false); this.GetExtremesFromAll_DefaultValue = nullable; this.GetExtremesFromAll = nullable; string str5 = ""; str1 = str5; this.Id_DefaultValue = str5; this.Id = str1; nullable1 = null; this.Index_DefaultValue = nullable1; this.Index = nullable1; List <string> strs2 = new List <string>(); strs1 = strs2; this.Keys_DefaultValue = strs2; this.Keys = strs1; nullable1 = null; this.LegendIndex_DefaultValue = nullable1; this.LegendIndex = nullable1; string str6 = ""; str1 = str6; this.LinkedTo_DefaultValue = str6; this.LinkedTo = str1; nullable1 = null; this.MaxPointWidth_DefaultValue = nullable1; this.MaxPointWidth = nullable1; object obj = null; str1 = (string)obj; this.Name_DefaultValue = (string)obj; this.Name = str1; HeatmapSeriesPoint heatmapSeriesPoint = new HeatmapSeriesPoint(); HeatmapSeriesPoint heatmapSeriesPoint1 = heatmapSeriesPoint; this.Point_DefaultValue = heatmapSeriesPoint; this.Point = heatmapSeriesPoint1; nullable1 = new double?((double)1); this.Rowsize_DefaultValue = nullable1; this.Rowsize = nullable1; nullable = new bool?(false); this.Selected_DefaultValue = nullable; this.Selected = nullable; Highsoft.Web.Mvc.Charts.Shadow shadow = new Highsoft.Web.Mvc.Charts.Shadow() { Enabled = false }; Highsoft.Web.Mvc.Charts.Shadow shadow1 = shadow; this.Shadow_DefaultValue = shadow; this.Shadow = shadow1; nullable = new bool?(false); this.ShowCheckbox_DefaultValue = nullable; this.ShowCheckbox = nullable; nullable = new bool?(true); this.ShowInLegend_DefaultValue = nullable; this.ShowInLegend = nullable; HeatmapSeriesStates heatmapSeriesState = new HeatmapSeriesStates(); HeatmapSeriesStates heatmapSeriesState1 = heatmapSeriesState; this.States_DefaultValue = heatmapSeriesState; this.States = heatmapSeriesState1; nullable = new bool?(true); this.StickyTracking_DefaultValue = nullable; this.StickyTracking = nullable; HeatmapSeriesTooltip heatmapSeriesTooltip = new HeatmapSeriesTooltip(); HeatmapSeriesTooltip heatmapSeriesTooltip1 = heatmapSeriesTooltip; this.Tooltip_DefaultValue = heatmapSeriesTooltip; this.Tooltip = heatmapSeriesTooltip1; nullable1 = new double?((double)1000); this.TurboThreshold_DefaultValue = nullable1; this.TurboThreshold = nullable1; int num1 = 0; HeatmapSeriesType heatmapSeriesType = (HeatmapSeriesType)num1; this.Type_DefaultValue = (HeatmapSeriesType)num1; this.Type = heatmapSeriesType; nullable = new bool?(true); this.Visible_DefaultValue = nullable; this.Visible = nullable; string str7 = "0"; str1 = str7; this.XAxis_DefaultValue = str7; this.XAxis = str1; string str8 = "0"; str1 = str8; this.YAxis_DefaultValue = str8; this.YAxis = str1; nullable1 = null; this.ZIndex_DefaultValue = nullable1; this.ZIndex = nullable1; string str9 = "y"; str1 = str9; this.ZoneAxis_DefaultValue = str9; this.ZoneAxis = str1; HeatmapSeriesZones heatmapSeriesZone = new HeatmapSeriesZones(); HeatmapSeriesZones heatmapSeriesZone1 = heatmapSeriesZone; this.Zones_DefaultValue = heatmapSeriesZone; this.Zones = heatmapSeriesZone1; }