Exemplo 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.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);
            }
            if (this.Cursor != this.Cursor_DefaultValue)
            {
                ErrorbarSeriesCursor cursor = this.Cursor;
                hashtables.Add("cursor", Highcharts.FirstCharacterToLower(cursor.ToString()));
            }
            if (this.Data.Any <ErrorbarSeriesData>())
            {
                hashtables.Add("data", base.HashifyList(this.Data));
            }
            animationLimit             = this.Depth;
            animationLimitDefaultValue = this.Depth_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("depth", this.Depth);
            }
            if (this.Description != this.Description_DefaultValue)
            {
                hashtables.Add("description", this.Description);
            }
            if (this.EdgeColor != this.EdgeColor_DefaultValue)
            {
                hashtables.Add("edgeColor", this.EdgeColor);
            }
            animationLimitDefaultValue = this.EdgeWidth;
            animationLimit             = this.EdgeWidth_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("edgeWidth", this.EdgeWidth);
            }
            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);
            }
            animationLimit             = this.GroupZPadding;
            animationLimitDefaultValue = this.GroupZPadding_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("groupZPadding", this.GroupZPadding);
            }
            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);
            }
            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.NegativeColor != this.NegativeColor_DefaultValue)
            {
                hashtables.Add("negativeColor", this.NegativeColor);
            }
            if (this.Point.IsDirty())
            {
                hashtables.Add("point", this.Point.ToHashtable());
            }
            animationLimitDefaultValue = this.PointInterval;
            animationLimit             = this.PointInterval_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("pointInterval", this.PointInterval);
            }
            if (this.PointIntervalUnit != this.PointIntervalUnit_DefaultValue)
            {
                ErrorbarSeriesPointIntervalUnit pointIntervalUnit = this.PointIntervalUnit;
                hashtables.Add("pointIntervalUnit", Highcharts.FirstCharacterToLower(pointIntervalUnit.ToString()));
            }
            animationLimit             = this.PointPadding;
            animationLimitDefaultValue = this.PointPadding_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("pointPadding", this.PointPadding);
            }
            if (this.PointPlacement.IsDirty())
            {
                hashtables.Add("pointPlacement", this.PointPlacement.ToJSON());
            }
            animationLimitDefaultValue = this.PointRange;
            animationLimit             = this.PointRange_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("pointRange", this.PointRange);
            }
            animationLimit             = this.PointStart;
            animationLimitDefaultValue = this.PointStart_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("pointStart", this.PointStart);
            }
            animationLimitDefaultValue = this.PointWidth;
            animationLimit             = this.PointWidth_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("pointWidth", this.PointWidth);
            }
            allowPointSelect             = this.Selected;
            allowPointSelectDefaultValue = this.Selected_DefaultValue;
            if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true))
            {
                hashtables.Add("selected", this.Selected);
            }
            if (this.States.IsDirty())
            {
                hashtables.Add("states", this.States.ToHashtable());
            }
            if (this.StemColor != this.StemColor_DefaultValue)
            {
                hashtables.Add("stemColor", this.StemColor);
            }
            if (this.StemDashStyle != this.StemDashStyle_DefaultValue)
            {
                ErrorbarSeriesStemDashStyle stemDashStyle = this.StemDashStyle;
                hashtables.Add("stemDashStyle", Highcharts.FirstCharacterToLower(stemDashStyle.ToString()));
            }
            animationLimit             = this.StemWidth;
            animationLimitDefaultValue = this.StemWidth_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("stemWidth", this.StemWidth);
            }
            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());
            }
            animationLimitDefaultValue = this.TurboThreshold;
            animationLimit             = this.TurboThreshold_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("turboThreshold", this.TurboThreshold);
            }
            if (this.Type != this.Type_DefaultValue)
            {
                ErrorbarSeriesType 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.WhiskerColor != this.WhiskerColor_DefaultValue)
            {
                hashtables.Add("whiskerColor", this.WhiskerColor);
            }
            if (this.WhiskerLength != this.WhiskerLength_DefaultValue)
            {
                hashtables.Add("whiskerLength", this.WhiskerLength);
            }
            animationLimit             = this.WhiskerWidth;
            animationLimitDefaultValue = this.WhiskerWidth_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("whiskerWidth", this.WhiskerWidth);
            }
            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);
        }
Exemplo n.º 2
0
        public ErrorbarSeries()
        {
            bool?nullable = new bool?(false);

            this.AllowPointSelect_DefaultValue = nullable;
            this.AllowPointSelect = nullable;
            double?nullable1 = null;

            this.AnimationLimit_DefaultValue = nullable1;
            this.AnimationLimit = nullable1;
            string str  = "";
            string str1 = str;

            this.ClassName_DefaultValue = str;
            this.ClassName = str1;
            string str2 = "#000000";

            str1 = str2;
            this.Color_DefaultValue = str2;
            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;
            int num = 0;
            ErrorbarSeriesCursor errorbarSeriesCursor = (ErrorbarSeriesCursor)num;

            this.Cursor_DefaultValue = (ErrorbarSeriesCursor)num;
            this.Cursor = errorbarSeriesCursor;
            List <ErrorbarSeriesData> errorbarSeriesDatas  = new List <ErrorbarSeriesData>();
            List <ErrorbarSeriesData> errorbarSeriesDatas1 = errorbarSeriesDatas;

            this.Data_DefaultValue = errorbarSeriesDatas;
            this.Data = errorbarSeriesDatas1;
            nullable1 = new double?((double)25);
            this.Depth_DefaultValue = nullable1;
            this.Depth = nullable1;
            string str3 = "undefined";

            str1 = str3;
            this.Description_DefaultValue = str3;
            this.Description = str1;
            string str4 = "";

            str1 = str4;
            this.EdgeColor_DefaultValue = str4;
            this.EdgeColor = str1;
            nullable1      = new double?((double)1);
            this.EdgeWidth_DefaultValue = nullable1;
            this.EdgeWidth = nullable1;
            nullable       = new bool?(true);
            this.EnableMouseTracking_DefaultValue = nullable;
            this.EnableMouseTracking = nullable;
            ErrorbarSeriesEvents errorbarSeriesEvent  = new ErrorbarSeriesEvents();
            ErrorbarSeriesEvents errorbarSeriesEvent1 = errorbarSeriesEvent;

            this.Events_DefaultValue = errorbarSeriesEvent;
            this.Events = errorbarSeriesEvent1;
            nullable    = new bool?(false);
            this.GetExtremesFromAll_DefaultValue = nullable;
            this.GetExtremesFromAll = nullable;
            nullable1 = new double?((double)1);
            this.GroupZPadding_DefaultValue = nullable1;
            this.GroupZPadding = nullable1;
            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;
            nullable1                   = new double?((double)1);
            this.LineWidth_DefaultValue = nullable1;
            this.LineWidth              = nullable1;
            string str6 = ":previous";

            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;
            string str7 = "null";

            str1 = str7;
            this.NegativeColor_DefaultValue = str7;
            this.NegativeColor = str1;
            ErrorbarSeriesPoint errorbarSeriesPoint  = new ErrorbarSeriesPoint();
            ErrorbarSeriesPoint errorbarSeriesPoint1 = errorbarSeriesPoint;

            this.Point_DefaultValue = errorbarSeriesPoint;
            this.Point = errorbarSeriesPoint1;
            nullable1  = new double?((double)1);
            this.PointInterval_DefaultValue = nullable1;
            this.PointInterval = nullable1;
            int num1 = 0;
            ErrorbarSeriesPointIntervalUnit errorbarSeriesPointIntervalUnit = (ErrorbarSeriesPointIntervalUnit)num1;

            this.PointIntervalUnit_DefaultValue = (ErrorbarSeriesPointIntervalUnit)num1;
            this.PointIntervalUnit = errorbarSeriesPointIntervalUnit;
            nullable1 = new double?(0.1);
            this.PointPadding_DefaultValue = nullable1;
            this.PointPadding = nullable1;
            Highsoft.Web.Mvc.Charts.PointPlacement pointPlacement  = new Highsoft.Web.Mvc.Charts.PointPlacement();
            Highsoft.Web.Mvc.Charts.PointPlacement pointPlacement1 = pointPlacement;
            this.PointPlacement_DefaultValue = pointPlacement;
            this.PointPlacement          = pointPlacement1;
            nullable1                    = null;
            this.PointRange_DefaultValue = nullable1;
            this.PointRange              = nullable1;
            nullable1                    = new double?(0);
            this.PointStart_DefaultValue = nullable1;
            this.PointStart              = nullable1;
            nullable1                    = null;
            this.PointWidth_DefaultValue = nullable1;
            this.PointWidth              = nullable1;
            nullable = new bool?(false);
            this.Selected_DefaultValue = nullable;
            this.Selected = nullable;
            ErrorbarSeriesStates errorbarSeriesState  = new ErrorbarSeriesStates();
            ErrorbarSeriesStates errorbarSeriesState1 = errorbarSeriesState;

            this.States_DefaultValue = errorbarSeriesState;
            this.States = errorbarSeriesState1;
            string str8 = "null";

            str1 = str8;
            this.StemColor_DefaultValue = str8;
            this.StemColor = str1;
            int num2 = 0;
            ErrorbarSeriesStemDashStyle errorbarSeriesStemDashStyle = (ErrorbarSeriesStemDashStyle)num2;

            this.StemDashStyle_DefaultValue = (ErrorbarSeriesStemDashStyle)num2;
            this.StemDashStyle          = errorbarSeriesStemDashStyle;
            nullable1                   = null;
            this.StemWidth_DefaultValue = nullable1;
            this.StemWidth              = nullable1;
            nullable = new bool?(true);
            this.StickyTracking_DefaultValue = nullable;
            this.StickyTracking = nullable;
            ErrorbarSeriesTooltip errorbarSeriesTooltip  = new ErrorbarSeriesTooltip();
            ErrorbarSeriesTooltip errorbarSeriesTooltip1 = errorbarSeriesTooltip;

            this.Tooltip_DefaultValue = errorbarSeriesTooltip;
            this.Tooltip = errorbarSeriesTooltip1;
            nullable1    = new double?((double)1000);
            this.TurboThreshold_DefaultValue = nullable1;
            this.TurboThreshold = nullable1;
            int num3 = 0;
            ErrorbarSeriesType errorbarSeriesType = (ErrorbarSeriesType)num3;

            this.Type_DefaultValue = (ErrorbarSeriesType)num3;
            this.Type = errorbarSeriesType;
            nullable  = new bool?(true);
            this.Visible_DefaultValue = nullable;
            this.Visible = nullable;
            string str9 = "null";

            str1 = str9;
            this.WhiskerColor_DefaultValue = str9;
            this.WhiskerColor = str1;
            string str10 = "50%";

            str1 = str10;
            this.WhiskerLength_DefaultValue = str10;
            this.WhiskerLength             = str1;
            nullable1                      = null;
            this.WhiskerWidth_DefaultValue = nullable1;
            this.WhiskerWidth              = nullable1;
            string str11 = "0";

            str1 = str11;
            this.XAxis_DefaultValue = str11;
            this.XAxis = str1;
            string str12 = "0";

            str1 = str12;
            this.YAxis_DefaultValue = str12;
            this.YAxis = str1;
            nullable1  = null;
            this.ZIndex_DefaultValue = nullable1;
            this.ZIndex = nullable1;
            string str13 = "y";

            str1 = str13;
            this.ZoneAxis_DefaultValue = str13;
            this.ZoneAxis = str1;
            ErrorbarSeriesZones errorbarSeriesZone  = new ErrorbarSeriesZones();
            ErrorbarSeriesZones errorbarSeriesZone1 = errorbarSeriesZone;

            this.Zones_DefaultValue = errorbarSeriesZone;
            this.Zones = errorbarSeriesZone1;
        }