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);
            }
            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.BorderWidth;
            animationLimit             = this.BorderWidth_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("borderWidth", this.BorderWidth);
            }
            if (this.Center != this.Center_DefaultValue)
            {
                hashtables.Add("center", this.Center);
            }
            if (this.ClassName != this.ClassName_DefaultValue)
            {
                hashtables.Add("className", this.ClassName);
            }
            animationLimit             = this.ColorIndex;
            animationLimitDefaultValue = this.ColorIndex_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("colorIndex", this.ColorIndex);
            }
            if (this.Colors != this.Colors_DefaultValue)
            {
                hashtables.Add("colors", this.Colors);
            }
            if (this.Cursor != this.Cursor_DefaultValue)
            {
                PyramidSeriesCursor cursor = this.Cursor;
                hashtables.Add("cursor", Highcharts.FirstCharacterToLower(cursor.ToString()));
            }
            if (this.Data.Any <PyramidSeriesData>())
            {
                hashtables.Add("data", base.HashifyList(this.Data));
            }
            if (this.DataLabels.IsDirty())
            {
                hashtables.Add("dataLabels", this.DataLabels.ToHashtable());
            }
            animationLimitDefaultValue = this.Depth;
            animationLimit             = this.Depth_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("depth", this.Depth);
            }
            if (this.Description != this.Description_DefaultValue)
            {
                hashtables.Add("description", this.Description);
            }
            allowPointSelectDefaultValue = this.EnableMouseTracking;
            allowPointSelect             = this.EnableMouseTracking_DefaultValue;
            if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true))
            {
                hashtables.Add("enableMouseTracking", this.EnableMouseTracking);
            }
            if (this.Events.IsDirty())
            {
                hashtables.Add("events", this.Events.ToHashtable());
            }
            allowPointSelect             = this.GetExtremesFromAll;
            allowPointSelectDefaultValue = this.GetExtremesFromAll_DefaultValue;
            if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true))
            {
                hashtables.Add("getExtremesFromAll", this.GetExtremesFromAll);
            }
            if (this.Height != this.Height_DefaultValue)
            {
                hashtables.Add("height", this.Height);
            }
            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.MinSize;
            animationLimitDefaultValue = this.MinSize_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("minSize", this.MinSize);
            }
            if (this.Name != this.Name_DefaultValue)
            {
                hashtables.Add("name", this.Name);
            }
            if (this.Point.IsDirty())
            {
                hashtables.Add("point", this.Point.ToHashtable());
            }
            allowPointSelectDefaultValue = this.Reversed;
            allowPointSelect             = this.Reversed_DefaultValue;
            if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true))
            {
                hashtables.Add("reversed", this.Reversed);
            }
            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.ShowInLegend;
            allowPointSelect             = this.ShowInLegend_DefaultValue;
            if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true))
            {
                hashtables.Add("showInLegend", this.ShowInLegend);
            }
            animationLimitDefaultValue = this.SlicedOffset;
            animationLimit             = this.SlicedOffset_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("slicedOffset", this.SlicedOffset);
            }
            if (this.States.IsDirty())
            {
                hashtables.Add("states", this.States.ToHashtable());
            }
            allowPointSelect             = this.StickyTracking;
            allowPointSelectDefaultValue = this.StickyTracking_DefaultValue;
            if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true))
            {
                hashtables.Add("stickyTracking", this.StickyTracking);
            }
            if (this.Tooltip.IsDirty())
            {
                hashtables.Add("tooltip", this.Tooltip.ToHashtable());
            }
            if (this.Type != this.Type_DefaultValue)
            {
                PyramidSeriesType type = this.Type;
                hashtables.Add("type", Highcharts.FirstCharacterToLower(type.ToString()));
            }
            allowPointSelectDefaultValue = this.Visible;
            allowPointSelect             = this.Visible_DefaultValue;
            if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true))
            {
                hashtables.Add("visible", this.Visible);
            }
            if (this.Width != this.Width_DefaultValue)
            {
                hashtables.Add("width", this.Width);
            }
            animationLimit             = this.ZIndex;
            animationLimitDefaultValue = this.ZIndex_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.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);
        }
Esempio n. 2
0
        public PyramidSeries()
        {
            bool?nullable = new bool?(false);

            this.AllowPointSelect_DefaultValue = nullable;
            this.AllowPointSelect = nullable;
            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?((double)1);
            this.BorderWidth_DefaultValue = nullable1;
            this.BorderWidth = nullable1;
            string[] strArrays  = new string[2];
            string[] strArrays1 = strArrays;
            this.Center_DefaultValue = strArrays;
            this.Center = strArrays1;
            string str2 = "";

            str1 = str2;
            this.ClassName_DefaultValue = str2;
            this.ClassName = str1;
            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;
            int num = 0;
            PyramidSeriesCursor pyramidSeriesCursor = (PyramidSeriesCursor)num;

            this.Cursor_DefaultValue = (PyramidSeriesCursor)num;
            this.Cursor = pyramidSeriesCursor;
            List <PyramidSeriesData> pyramidSeriesDatas  = new List <PyramidSeriesData>();
            List <PyramidSeriesData> pyramidSeriesDatas1 = pyramidSeriesDatas;

            this.Data_DefaultValue = pyramidSeriesDatas;
            this.Data = pyramidSeriesDatas1;
            PyramidSeriesDataLabels pyramidSeriesDataLabel  = new PyramidSeriesDataLabels();
            PyramidSeriesDataLabels pyramidSeriesDataLabel1 = pyramidSeriesDataLabel;

            this.DataLabels_DefaultValue = pyramidSeriesDataLabel;
            this.DataLabels         = pyramidSeriesDataLabel1;
            nullable1               = new double?(0);
            this.Depth_DefaultValue = nullable1;
            this.Depth              = nullable1;
            string str3 = "undefined";

            str1 = str3;
            this.Description_DefaultValue = str3;
            this.Description = str1;
            nullable         = new bool?(true);
            this.EnableMouseTracking_DefaultValue = nullable;
            this.EnableMouseTracking = nullable;
            PyramidSeriesEvents pyramidSeriesEvent  = new PyramidSeriesEvents();
            PyramidSeriesEvents pyramidSeriesEvent1 = pyramidSeriesEvent;

            this.Events_DefaultValue = pyramidSeriesEvent;
            this.Events = pyramidSeriesEvent1;
            nullable    = new bool?(false);
            this.GetExtremesFromAll_DefaultValue = nullable;
            this.GetExtremesFromAll = nullable;
            object obj = null;

            str1 = (string)obj;
            this.Height_DefaultValue = (string)obj;
            this.Height = str1;
            string str4 = "";

            str1 = str4;
            this.Id_DefaultValue = str4;
            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 str5 = "";

            str1 = str5;
            this.LinkedTo_DefaultValue = str5;
            this.LinkedTo             = str1;
            nullable1                 = new double?((double)80);
            this.MinSize_DefaultValue = nullable1;
            this.MinSize              = nullable1;
            object obj1 = null;

            str1 = (string)obj1;
            this.Name_DefaultValue = (string)obj1;
            this.Name = str1;
            PyramidSeriesPoint pyramidSeriesPoint  = new PyramidSeriesPoint();
            PyramidSeriesPoint pyramidSeriesPoint1 = pyramidSeriesPoint;

            this.Point_DefaultValue = pyramidSeriesPoint;
            this.Point = pyramidSeriesPoint1;
            nullable   = new bool?(true);
            this.Reversed_DefaultValue = nullable;
            this.Reversed = nullable;
            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.ShowInLegend_DefaultValue = nullable;
            this.ShowInLegend = nullable;
            nullable1         = new double?((double)10);
            this.SlicedOffset_DefaultValue = nullable1;
            this.SlicedOffset = nullable1;
            PyramidSeriesStates pyramidSeriesState  = new PyramidSeriesStates();
            PyramidSeriesStates pyramidSeriesState1 = pyramidSeriesState;

            this.States_DefaultValue = pyramidSeriesState;
            this.States = pyramidSeriesState1;
            nullable    = new bool?(false);
            this.StickyTracking_DefaultValue = nullable;
            this.StickyTracking = nullable;
            PyramidSeriesTooltip pyramidSeriesTooltip  = new PyramidSeriesTooltip();
            PyramidSeriesTooltip pyramidSeriesTooltip1 = pyramidSeriesTooltip;

            this.Tooltip_DefaultValue = pyramidSeriesTooltip;
            this.Tooltip = pyramidSeriesTooltip1;
            int num1 = 0;
            PyramidSeriesType pyramidSeriesType = (PyramidSeriesType)num1;

            this.Type_DefaultValue = (PyramidSeriesType)num1;
            this.Type = pyramidSeriesType;
            nullable  = new bool?(true);
            this.Visible_DefaultValue = nullable;
            this.Visible = nullable;
            string str6 = "90%";

            str1 = str6;
            this.Width_DefaultValue = str6;
            this.Width = str1;
            nullable1  = null;
            this.ZIndex_DefaultValue = nullable1;
            this.ZIndex = nullable1;
            string str7 = "y";

            str1 = str7;
            this.ZoneAxis_DefaultValue = str7;
            this.ZoneAxis = str1;
            PyramidSeriesZones pyramidSeriesZone  = new PyramidSeriesZones();
            PyramidSeriesZones pyramidSeriesZone1 = pyramidSeriesZone;

            this.Zones_DefaultValue = pyramidSeriesZone;
            this.Zones = pyramidSeriesZone1;
        }