Esempio n. 1
0
        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.ClassName != this.ClassName_DefaultValue)
            {
                hashtables.Add("className", this.ClassName);
            }
            if (this.Color != this.Color_DefaultValue)
            {
                hashtables.Add("color", this.Color);
            }
            animationLimitDefaultValue = this.ColorIndex;
            animationLimit             = this.ColorIndex_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("colorIndex", this.ColorIndex);
            }
            animationLimit             = this.CropThreshold;
            animationLimitDefaultValue = this.CropThreshold_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("cropThreshold", this.CropThreshold);
            }
            if (this.Cursor != this.Cursor_DefaultValue)
            {
                BubbleSeriesCursor cursor = this.Cursor;
                hashtables.Add("cursor", Highcharts.FirstCharacterToLower(cursor.ToString()));
            }
            if (this.DashStyle != this.DashStyle_DefaultValue)
            {
                BubbleSeriesDashStyle dashStyle = this.DashStyle;
                hashtables.Add("dashStyle", Highcharts.FirstCharacterToLower(dashStyle.ToString()));
            }
            if (this.Data.Any <BubbleSeriesData>())
            {
                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);
            }
            allowPointSelectDefaultValue = this.DisplayNegative;
            allowPointSelect             = this.DisplayNegative_DefaultValue;
            if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true))
            {
                hashtables.Add("displayNegative", this.DisplayNegative);
            }
            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);
            }
            animationLimitDefaultValue = this.Index;
            animationLimit             = this.Index_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("index", this.Index);
            }
            if (this.Keys != this.Keys_DefaultValue)
            {
                hashtables.Add("keys", this.Keys);
            }
            animationLimit             = this.LegendIndex;
            animationLimitDefaultValue = this.LegendIndex_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("legendIndex", this.LegendIndex);
            }
            animationLimitDefaultValue = this.LineWidth;
            animationLimit             = this.LineWidth_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("lineWidth", this.LineWidth);
            }
            if (this.LinkedTo != this.LinkedTo_DefaultValue)
            {
                hashtables.Add("linkedTo", this.LinkedTo);
            }
            if (this.Marker.IsDirty())
            {
                hashtables.Add("marker", this.Marker.ToHashtable());
            }
            if (this.MaxSize != this.MaxSize_DefaultValue)
            {
                hashtables.Add("maxSize", this.MaxSize);
            }
            if (this.MinSize != this.MinSize_DefaultValue)
            {
                hashtables.Add("minSize", this.MinSize);
            }
            if (this.Name != this.Name_DefaultValue)
            {
                hashtables.Add("name", this.Name);
            }
            if (this.NegativeColor != this.NegativeColor_DefaultValue)
            {
                hashtables.Add("negativeColor", this.NegativeColor);
            }
            if (this.Point.IsDirty())
            {
                hashtables.Add("point", this.Point.ToHashtable());
            }
            animationLimit             = this.PointInterval;
            animationLimitDefaultValue = this.PointInterval_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("pointInterval", this.PointInterval);
            }
            if (this.PointIntervalUnit != this.PointIntervalUnit_DefaultValue)
            {
                BubbleSeriesPointIntervalUnit pointIntervalUnit = this.PointIntervalUnit;
                hashtables.Add("pointIntervalUnit", Highcharts.FirstCharacterToLower(pointIntervalUnit.ToString()));
            }
            animationLimitDefaultValue = this.PointStart;
            animationLimit             = this.PointStart_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("pointStart", this.PointStart);
            }
            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.SizeBy != this.SizeBy_DefaultValue)
            {
                BubbleSeriesSizeBy sizeBy = this.SizeBy;
                hashtables.Add("sizeBy", Highcharts.FirstCharacterToLower(sizeBy.ToString()));
            }
            allowPointSelectDefaultValue = this.SizeByAbsoluteValue;
            allowPointSelect             = this.SizeByAbsoluteValue_DefaultValue;
            if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true))
            {
                hashtables.Add("sizeByAbsoluteValue", this.SizeByAbsoluteValue);
            }
            allowPointSelect             = this.SoftThreshold;
            allowPointSelectDefaultValue = this.SoftThreshold_DefaultValue;
            if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true))
            {
                hashtables.Add("softThreshold", this.SoftThreshold);
            }
            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);
            }
            animationLimit             = this.Threshold;
            animationLimitDefaultValue = this.Threshold_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("threshold", this.Threshold);
            }
            if (this.Tooltip.IsDirty())
            {
                hashtables.Add("tooltip", this.Tooltip.ToHashtable());
            }
            if (this.Type != this.Type_DefaultValue)
            {
                BubbleSeriesType 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);
            }
            animationLimit             = this.ZMax;
            animationLimitDefaultValue = this.ZMax_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("zMax", this.ZMax);
            }
            animationLimitDefaultValue = this.ZMin;
            animationLimit             = this.ZMin_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("zMin", this.ZMin);
            }
            animationLimit             = this.ZThreshold;
            animationLimitDefaultValue = this.ZThreshold_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("zThreshold", this.ZThreshold);
            }
            if (this.ZoneAxis != this.ZoneAxis_DefaultValue)
            {
                hashtables.Add("zoneAxis", this.ZoneAxis);
            }
            if (this.Zones.IsDirty())
            {
                hashtables.Add("zones", this.Zones.ToHashtable());
            }
            return(hashtables);
        }
Esempio n. 2
0
        public BubbleSeries()
        {
            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  = "";
            string str1 = str;

            this.ClassName_DefaultValue = str;
            this.ClassName = str1;
            object obj = null;

            str1 = (string)obj;
            this.Color_DefaultValue = (string)obj;
            this.Color = str1;
            nullable1  = null;
            this.ColorIndex_DefaultValue = nullable1;
            this.ColorIndex = nullable1;
            nullable1       = new double?((double)300);
            this.CropThreshold_DefaultValue = nullable1;
            this.CropThreshold = nullable1;
            int num = 0;
            BubbleSeriesCursor bubbleSeriesCursor = (BubbleSeriesCursor)num;

            this.Cursor_DefaultValue = (BubbleSeriesCursor)num;
            this.Cursor = bubbleSeriesCursor;
            int num1 = 0;
            BubbleSeriesDashStyle bubbleSeriesDashStyle = (BubbleSeriesDashStyle)num1;

            this.DashStyle_DefaultValue = (BubbleSeriesDashStyle)num1;
            this.DashStyle = bubbleSeriesDashStyle;
            List <BubbleSeriesData> bubbleSeriesDatas  = new List <BubbleSeriesData>();
            List <BubbleSeriesData> bubbleSeriesDatas1 = bubbleSeriesDatas;

            this.Data_DefaultValue = bubbleSeriesDatas;
            this.Data = bubbleSeriesDatas1;
            BubbleSeriesDataLabels bubbleSeriesDataLabel  = new BubbleSeriesDataLabels();
            BubbleSeriesDataLabels bubbleSeriesDataLabel1 = bubbleSeriesDataLabel;

            this.DataLabels_DefaultValue = bubbleSeriesDataLabel;
            this.DataLabels = bubbleSeriesDataLabel1;
            string str2 = "undefined";

            str1 = str2;
            this.Description_DefaultValue = str2;
            this.Description = str1;
            nullable         = new bool?(true);
            this.DisplayNegative_DefaultValue = nullable;
            this.DisplayNegative = nullable;
            nullable             = new bool?(true);
            this.EnableMouseTracking_DefaultValue = nullable;
            this.EnableMouseTracking = nullable;
            BubbleSeriesEvents bubbleSeriesEvent  = new BubbleSeriesEvents();
            BubbleSeriesEvents bubbleSeriesEvent1 = bubbleSeriesEvent;

            this.Events_DefaultValue = bubbleSeriesEvent;
            this.Events = bubbleSeriesEvent1;
            nullable    = new bool?(false);
            this.GetExtremesFromAll_DefaultValue = nullable;
            this.GetExtremesFromAll = nullable;
            string str3 = "";

            str1 = str3;
            this.Id_DefaultValue = str3;
            this.Id   = str1;
            nullable1 = null;
            this.Index_DefaultValue = nullable1;
            this.Index = nullable1;
            List <string> strs  = new List <string>();
            List <string> strs1 = strs;

            this.Keys_DefaultValue = strs;
            this.Keys = strs1;
            nullable1 = null;
            this.LegendIndex_DefaultValue = nullable1;
            this.LegendIndex            = nullable1;
            nullable1                   = new double?(0);
            this.LineWidth_DefaultValue = nullable1;
            this.LineWidth              = nullable1;
            string str4 = "";

            str1 = str4;
            this.LinkedTo_DefaultValue = str4;
            this.LinkedTo = str1;
            BubbleSeriesMarker bubbleSeriesMarker  = new BubbleSeriesMarker();
            BubbleSeriesMarker bubbleSeriesMarker1 = bubbleSeriesMarker;

            this.Marker_DefaultValue = bubbleSeriesMarker;
            this.Marker = bubbleSeriesMarker1;
            string str5 = "20%";

            str1 = str5;
            this.MaxSize_DefaultValue = str5;
            this.MaxSize = str1;
            string str6 = "8";

            str1 = str6;
            this.MinSize_DefaultValue = str6;
            this.MinSize = str1;
            object obj1 = null;

            str1 = (string)obj1;
            this.Name_DefaultValue = (string)obj1;
            this.Name = str1;
            string str7 = "null";

            str1 = str7;
            this.NegativeColor_DefaultValue = str7;
            this.NegativeColor = str1;
            BubbleSeriesPoint bubbleSeriesPoint  = new BubbleSeriesPoint();
            BubbleSeriesPoint bubbleSeriesPoint1 = bubbleSeriesPoint;

            this.Point_DefaultValue = bubbleSeriesPoint;
            this.Point = bubbleSeriesPoint1;
            nullable1  = new double?((double)1);
            this.PointInterval_DefaultValue = nullable1;
            this.PointInterval = nullable1;
            int num2 = 0;
            BubbleSeriesPointIntervalUnit bubbleSeriesPointIntervalUnit = (BubbleSeriesPointIntervalUnit)num2;

            this.PointIntervalUnit_DefaultValue = (BubbleSeriesPointIntervalUnit)num2;
            this.PointIntervalUnit = bubbleSeriesPointIntervalUnit;
            nullable1 = new double?(0);
            this.PointStart_DefaultValue = nullable1;
            this.PointStart            = 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;
            int num3 = 0;
            BubbleSeriesSizeBy bubbleSeriesSizeBy = (BubbleSeriesSizeBy)num3;

            this.SizeBy_DefaultValue = (BubbleSeriesSizeBy)num3;
            this.SizeBy = bubbleSeriesSizeBy;
            nullable    = new bool?(false);
            this.SizeByAbsoluteValue_DefaultValue = nullable;
            this.SizeByAbsoluteValue = nullable;
            nullable = new bool?(false);
            this.SoftThreshold_DefaultValue = nullable;
            this.SoftThreshold = nullable;
            BubbleSeriesStates bubbleSeriesState  = new BubbleSeriesStates();
            BubbleSeriesStates bubbleSeriesState1 = bubbleSeriesState;

            this.States_DefaultValue = bubbleSeriesState;
            this.States = bubbleSeriesState1;
            nullable    = new bool?(false);
            this.StickyTracking_DefaultValue = nullable;
            this.StickyTracking         = nullable;
            nullable1                   = new double?(0);
            this.Threshold_DefaultValue = nullable1;
            this.Threshold              = nullable1;
            BubbleSeriesTooltip bubbleSeriesTooltip  = new BubbleSeriesTooltip();
            BubbleSeriesTooltip bubbleSeriesTooltip1 = bubbleSeriesTooltip;

            this.Tooltip_DefaultValue = bubbleSeriesTooltip;
            this.Tooltip = bubbleSeriesTooltip1;
            int num4 = 0;
            BubbleSeriesType bubbleSeriesType = (BubbleSeriesType)num4;

            this.Type_DefaultValue = (BubbleSeriesType)num4;
            this.Type = bubbleSeriesType;
            nullable  = new bool?(true);
            this.Visible_DefaultValue = nullable;
            this.Visible = nullable;
            string str8 = "0";

            str1 = str8;
            this.XAxis_DefaultValue = str8;
            this.XAxis = str1;
            string str9 = "0";

            str1 = str9;
            this.YAxis_DefaultValue = str9;
            this.YAxis = str1;
            nullable1  = null;
            this.ZIndex_DefaultValue = nullable1;
            this.ZIndex                  = nullable1;
            nullable1                    = null;
            this.ZMax_DefaultValue       = nullable1;
            this.ZMax                    = nullable1;
            nullable1                    = null;
            this.ZMin_DefaultValue       = nullable1;
            this.ZMin                    = nullable1;
            nullable1                    = new double?(0);
            this.ZThreshold_DefaultValue = nullable1;
            this.ZThreshold              = nullable1;
            string str10 = "y";

            str1 = str10;
            this.ZoneAxis_DefaultValue = str10;
            this.ZoneAxis = str1;
            BubbleSeriesZones bubbleSeriesZone  = new BubbleSeriesZones();
            BubbleSeriesZones bubbleSeriesZone1 = bubbleSeriesZone;

            this.Zones_DefaultValue = bubbleSeriesZone;
            this.Zones = bubbleSeriesZone1;
        }