Esempio n. 1
0
        internal override Hashtable ToHashtable()
        {
            Hashtable hashtable = new Hashtable();
            bool?     nullable1 = this.AllowPointSelect;
            bool?     nullable2 = this.AllowPointSelect_DefaultValue;

            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"allowPointSelect", (object)this.AllowPointSelect);
            }
            if (this.Animation.IsDirty())
            {
                hashtable.Add((object)"animation", (object)this.Animation.ToJSON());
            }
            double?nullable3 = this.AnimationLimit;
            double?nullable4 = this.AnimationLimit_DefaultValue;

            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"animationLimit", (object)this.AnimationLimit);
            }
            if (this.ClassName != this.ClassName_DefaultValue)
            {
                hashtable.Add((object)"className", (object)this.ClassName);
            }
            if (this.Color != this.Color_DefaultValue)
            {
                hashtable.Add((object)"color", (object)this.Color);
            }
            nullable4 = this.ColorIndex;
            nullable3 = this.ColorIndex_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"colorIndex", (object)this.ColorIndex);
            }
            if (this.Compare != this.Compare_DefaultValue)
            {
                hashtable.Add((object)"compare", (object)this.Compare);
            }
            if (this.CompareBase != this.CompareBase_DefaultValue)
            {
                hashtable.Add((object)"compareBase",
                              (object)Highstock.FirstCharacterToLower(this.CompareBase.ToString()));
            }
            nullable2 = this.ConnectNulls;
            nullable1 = this.ConnectNulls_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"connectNulls", (object)this.ConnectNulls);
            }
            nullable3 = this.CropThreshold;
            nullable4 = this.CropThreshold_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"cropThreshold", (object)this.CropThreshold);
            }
            if (this.Cursor != this.Cursor_DefaultValue)
            {
                hashtable.Add((object)"cursor", (object)Highstock.FirstCharacterToLower(this.Cursor.ToString()));
            }
            if (this.DashStyle != this.DashStyle_DefaultValue)
            {
                hashtable.Add((object)"dashStyle",
                              (object)Highstock.FirstCharacterToLower(this.DashStyle.ToString()));
            }
            if (this.DataGrouping.IsDirty())
            {
                hashtable.Add((object)"dataGrouping", (object)this.DataGrouping.ToHashtable());
            }
            if (this.DataLabels.IsDirty())
            {
                hashtable.Add((object)"dataLabels", (object)this.DataLabels.ToHashtable());
            }
            if (this.Description != this.Description_DefaultValue)
            {
                hashtable.Add((object)"description", (object)this.Description);
            }
            nullable1 = this.EnableMouseTracking;
            nullable2 = this.EnableMouseTracking_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"enableMouseTracking", (object)this.EnableMouseTracking);
            }
            if (this.Events.IsDirty())
            {
                hashtable.Add((object)"events", (object)this.Events.ToHashtable());
            }
            nullable4 = this.GapSize;
            nullable3 = this.GapSize_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"gapSize", (object)this.GapSize);
            }
            nullable2 = this.GetExtremesFromAll;
            nullable1 = this.GetExtremesFromAll_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"getExtremesFromAll", (object)this.GetExtremesFromAll);
            }
            if (this.Keys != this.Keys_DefaultValue)
            {
                hashtable.Add((object)"keys", (object)this.Keys);
            }
            nullable3 = this.LegendIndex;
            nullable4 = this.LegendIndex_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"legendIndex", (object)this.LegendIndex);
            }
            nullable4 = this.LineWidth;
            nullable3 = this.LineWidth_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"lineWidth", (object)this.LineWidth);
            }
            if (this.Linecap != this.Linecap_DefaultValue)
            {
                hashtable.Add((object)"linecap", (object)Highstock.FirstCharacterToLower(this.Linecap.ToString()));
            }
            if (this.LinkedTo != this.LinkedTo_DefaultValue)
            {
                hashtable.Add((object)"linkedTo", (object)this.LinkedTo);
            }
            if (this.Marker.IsDirty())
            {
                hashtable.Add((object)"marker", (object)this.Marker.ToHashtable());
            }
            if (this.NavigatorOptions != this.NavigatorOptions_DefaultValue)
            {
                hashtable.Add((object)"navigatorOptions", this.NavigatorOptions);
            }
            if (this.NegativeColor != this.NegativeColor_DefaultValue)
            {
                hashtable.Add((object)"negativeColor", (object)this.NegativeColor);
            }
            if (this.Point.IsDirty())
            {
                hashtable.Add((object)"point", (object)this.Point.ToHashtable());
            }
            nullable3 = this.PointInterval;
            nullable4 = this.PointInterval_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"pointInterval", (object)this.PointInterval);
            }
            if (this.PointIntervalUnit != this.PointIntervalUnit_DefaultValue)
            {
                hashtable.Add((object)"pointIntervalUnit",
                              (object)Highstock.FirstCharacterToLower(this.PointIntervalUnit.ToString()));
            }
            if (this.PointPlacement.IsDirty())
            {
                nullable4 = this.PointPlacement.Value;
                if (nullable4.HasValue)
                {
                    hashtable.Add((object)"pointPlacement", (object)this.PointPlacement.Value);
                }
                else
                {
                    hashtable.Add((object)"pointPlacement", (object)this.PointPlacement.ToJSON());
                }
            }
            nullable4 = this.PointRange;
            nullable3 = this.PointRange_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"pointRange", (object)this.PointRange);
            }
            nullable3 = this.PointStart;
            nullable4 = this.PointStart_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"pointStart", (object)this.PointStart);
            }
            nullable1 = this.Selected;
            nullable2 = this.Selected_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"selected", (object)this.Selected);
            }
            if (this.Shadow.IsDirty())
            {
                hashtable.Add((object)"shadow", (object)this.Shadow.ToHashtable());
            }
            nullable2 = this.ShowCheckbox;
            nullable1 = this.ShowCheckbox_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"showCheckbox", (object)this.ShowCheckbox);
            }
            nullable1 = this.ShowInLegend;
            nullable2 = this.ShowInLegend_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"showInLegend", (object)this.ShowInLegend);
            }
            nullable2 = this.ShowInNavigator;
            nullable1 = this.ShowInNavigator_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"showInNavigator", (object)this.ShowInNavigator);
            }
            nullable1 = this.SoftThreshold;
            nullable2 = this.SoftThreshold_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"softThreshold", (object)this.SoftThreshold);
            }
            if (this.Stacking != this.Stacking_DefaultValue)
            {
                hashtable.Add((object)"stacking", (object)Highstock.FirstCharacterToLower(this.Stacking.ToString()));
            }
            if (this.States.IsDirty())
            {
                hashtable.Add((object)"states", (object)this.States.ToHashtable());
            }
            nullable2 = this.StickyTracking;
            nullable1 = this.StickyTracking_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"stickyTracking", (object)this.StickyTracking);
            }
            nullable4 = this.Threshold;
            nullable3 = this.Threshold_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"threshold", (object)this.Threshold);
            }
            if (this.Tooltip.IsDirty())
            {
                hashtable.Add((object)"tooltip", (object)this.Tooltip.ToHashtable());
            }
            nullable3 = this.TurboThreshold;
            nullable4 = this.TurboThreshold_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"turboThreshold", (object)this.TurboThreshold);
            }
            nullable1 = this.Visible;
            nullable2 = this.Visible_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"visible", (object)this.Visible);
            }
            if (this.ZoneAxis != this.ZoneAxis_DefaultValue)
            {
                hashtable.Add((object)"zoneAxis", (object)this.ZoneAxis);
            }
            if (this.Zones != this.Zones_DefaultValue)
            {
                hashtable.Add((object)"zones", (object)this.HashifyList((IEnumerable)this.Zones));
            }
            return(hashtable);
        }
Esempio n. 2
0
        internal override Hashtable ToHashtable()
        {
            Hashtable hashtable = new Hashtable();
            bool?     nullable1 = this.AllowDecimals;
            bool?     nullable2 = this.AllowDecimals_DefaultValue;

            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"allowDecimals", (object)this.AllowDecimals);
            }
            if (this.AlternateGridColor != this.AlternateGridColor_DefaultValue)
            {
                hashtable.Add((object)"alternateGridColor", (object)this.AlternateGridColor);
            }
            if (this.Breaks.IsDirty())
            {
                hashtable.Add((object)"breaks", (object)this.Breaks.ToHashtable());
            }
            double?nullable3 = this.Ceiling;
            double?nullable4 = this.Ceiling_DefaultValue;

            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"ceiling", (object)this.Ceiling);
            }
            if (this.ClassName != this.ClassName_DefaultValue)
            {
                hashtable.Add((object)"className", (object)this.ClassName);
            }
            if (this.Crosshair.IsDirty())
            {
                hashtable.Add((object)"crosshair", (object)this.Crosshair.ToHashtable());
            }
            if (this.DateTimeLabelFormats != this.DateTimeLabelFormats_DefaultValue)
            {
                hashtable.Add((object)"dateTimeLabelFormats", (object)this.DateTimeLabelFormats);
            }
            if (this.Description != this.Description_DefaultValue)
            {
                hashtable.Add((object)"description", (object)this.Description);
            }
            nullable2 = this.EndOnTick;
            nullable1 = this.EndOnTick_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"endOnTick", (object)this.EndOnTick);
            }
            if (this.Events.IsDirty())
            {
                hashtable.Add((object)"events", (object)this.Events.ToHashtable());
            }
            nullable4 = this.Floor;
            nullable3 = this.Floor_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"floor", (object)this.Floor);
            }
            if (this.GridLineColor != this.GridLineColor_DefaultValue)
            {
                hashtable.Add((object)"gridLineColor", (object)this.GridLineColor);
            }
            if (this.GridLineDashStyle != this.GridLineDashStyle_DefaultValue)
            {
                hashtable.Add((object)"gridLineDashStyle",
                              (object)Highstock.FirstCharacterToLower(this.GridLineDashStyle.ToString()));
            }
            nullable3 = this.GridLineWidth;
            nullable4 = this.GridLineWidth_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"gridLineWidth", (object)this.GridLineWidth);
            }
            nullable4 = this.GridZIndex;
            nullable3 = this.GridZIndex_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"gridZIndex", (object)this.GridZIndex);
            }
            if (this.Height != this.Height_DefaultValue)
            {
                hashtable.Add((object)"height", (object)this.Height);
            }
            if (this.Id != this.Id_DefaultValue)
            {
                hashtable.Add((object)"id", (object)this.Id);
            }
            if (this.Labels.IsDirty())
            {
                hashtable.Add((object)"labels", (object)this.Labels.ToHashtable());
            }
            if (this.LineColor != this.LineColor_DefaultValue)
            {
                hashtable.Add((object)"lineColor", (object)this.LineColor);
            }
            nullable3 = this.LineWidth;
            nullable4 = this.LineWidth_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"lineWidth", (object)this.LineWidth);
            }
            nullable4 = this.LinkedTo;
            nullable3 = this.LinkedTo_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"linkedTo", (object)this.LinkedTo);
            }
            nullable3 = this.Max;
            nullable4 = this.Max_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"max", (object)this.Max);
            }
            nullable4 = this.MaxPadding;
            nullable3 = this.MaxPadding_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"maxPadding", (object)this.MaxPadding);
            }
            nullable3 = this.Min;
            nullable4 = this.Min_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"min", (object)this.Min);
            }
            nullable4 = this.MinPadding;
            nullable3 = this.MinPadding_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"minPadding", (object)this.MinPadding);
            }
            nullable3 = this.MinRange;
            nullable4 = this.MinRange_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"minRange", (object)this.MinRange);
            }
            nullable4 = this.MinTickInterval;
            nullable3 = this.MinTickInterval_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"minTickInterval", (object)this.MinTickInterval);
            }
            if (this.MinorGridLineColor != this.MinorGridLineColor_DefaultValue)
            {
                hashtable.Add((object)"minorGridLineColor", (object)this.MinorGridLineColor);
            }
            if (this.MinorGridLineDashStyle != this.MinorGridLineDashStyle_DefaultValue)
            {
                hashtable.Add((object)"minorGridLineDashStyle",
                              (object)Highstock.FirstCharacterToLower(this.MinorGridLineDashStyle.ToString()));
            }
            nullable3 = this.MinorGridLineWidth;
            nullable4 = this.MinorGridLineWidth_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"minorGridLineWidth", (object)this.MinorGridLineWidth);
            }
            if (this.MinorTickColor != this.MinorTickColor_DefaultValue)
            {
                hashtable.Add((object)"minorTickColor", (object)this.MinorTickColor);
            }
            if (this.MinorTickInterval != this.MinorTickInterval_DefaultValue)
            {
                hashtable.Add((object)"minorTickInterval", (object)this.MinorTickInterval);
            }
            nullable4 = this.MinorTickLength;
            nullable3 = this.MinorTickLength_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"minorTickLength", (object)this.MinorTickLength);
            }
            if (this.MinorTickPosition != this.MinorTickPosition_DefaultValue)
            {
                hashtable.Add((object)"minorTickPosition",
                              (object)Highstock.FirstCharacterToLower(this.MinorTickPosition.ToString()));
            }
            nullable3 = this.MinorTickWidth;
            nullable4 = this.MinorTickWidth_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"minorTickWidth", (object)this.MinorTickWidth);
            }
            nullable4 = this.Offset;
            nullable3 = this.Offset_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"offset", (object)this.Offset);
            }
            nullable1 = this.Opposite;
            nullable2 = this.Opposite_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"opposite", (object)this.Opposite);
            }
            nullable2 = this.Ordinal;
            nullable1 = this.Ordinal_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"ordinal", (object)this.Ordinal);
            }
            if (this.PlotBands != this.PlotBands_DefaultValue)
            {
                hashtable.Add((object)"plotBands", (object)this.HashifyList((IEnumerable)this.PlotBands));
            }
            if (this.PlotLines != this.PlotLines_DefaultValue)
            {
                hashtable.Add((object)"plotLines", (object)this.HashifyList((IEnumerable)this.PlotLines));
            }
            nullable3 = this.Range;
            nullable4 = this.Range_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"range", (object)this.Range);
            }
            nullable1 = this.Reversed;
            nullable2 = this.Reversed_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"reversed", (object)this.Reversed);
            }
            nullable2 = this.ReversedStacks;
            nullable1 = this.ReversedStacks_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"reversedStacks", (object)this.ReversedStacks);
            }
            if (this.Scrollbar.IsDirty())
            {
                hashtable.Add((object)"scrollbar", (object)this.Scrollbar.ToHashtable());
            }
            nullable1 = this.ShowEmpty;
            nullable2 = this.ShowEmpty_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"showEmpty", (object)this.ShowEmpty);
            }
            nullable2 = this.ShowFirstLabel;
            nullable1 = this.ShowFirstLabel_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"showFirstLabel", (object)this.ShowFirstLabel);
            }
            nullable1 = this.ShowLastLabel;
            nullable2 = this.ShowLastLabel_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"showLastLabel", (object)this.ShowLastLabel);
            }
            nullable4 = this.SoftMax;
            nullable3 = this.SoftMax_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"softMax", (object)this.SoftMax);
            }
            nullable3 = this.SoftMin;
            nullable4 = this.SoftMin_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"softMin", (object)this.SoftMin);
            }
            nullable4 = this.StartOfWeek;
            nullable3 = this.StartOfWeek_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"startOfWeek", (object)this.StartOfWeek);
            }
            nullable2 = this.StartOnTick;
            nullable1 = this.StartOnTick_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"startOnTick", (object)this.StartOnTick);
            }
            nullable3 = this.TickAmount;
            nullable4 = this.TickAmount_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"tickAmount", (object)this.TickAmount);
            }
            if (this.TickColor != this.TickColor_DefaultValue)
            {
                hashtable.Add((object)"tickColor", (object)this.TickColor);
            }
            nullable4 = this.TickInterval;
            nullable3 = this.TickInterval_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"tickInterval", (object)this.TickInterval);
            }
            nullable3 = this.TickLength;
            nullable4 = this.TickLength_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"tickLength", (object)this.TickLength);
            }
            nullable4 = this.TickPixelInterval;
            nullable3 = this.TickPixelInterval_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"tickPixelInterval", (object)this.TickPixelInterval);
            }
            if (this.TickPosition != this.TickPosition_DefaultValue)
            {
                hashtable.Add((object)"tickPosition",
                              (object)Highstock.FirstCharacterToLower(this.TickPosition.ToString()));
            }
            if (this.TickPositioner != this.TickPositioner_DefaultValue)
            {
                hashtable.Add((object)"tickPositioner", (object)this.TickPositioner);
                Highstock.AddFunction("YAxisTickPositioner.tickPositioner", this.TickPositioner);
            }
            if (this.TickPositions != this.TickPositions_DefaultValue)
            {
                hashtable.Add((object)"tickPositions", (object)this.TickPositions);
            }
            nullable3 = this.TickWidth;
            nullable4 = this.TickWidth_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"tickWidth", (object)this.TickWidth);
            }
            if (this.Title.IsDirty())
            {
                hashtable.Add((object)"title", (object)this.Title.ToHashtable());
            }
            if (this.Top != this.Top_DefaultValue)
            {
                hashtable.Add((object)"top", (object)this.Top);
            }
            nullable1 = this.Visible;
            nullable2 = this.Visible_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"visible", (object)this.Visible);
            }
            return(hashtable);
        }
Esempio n. 3
0
        internal override Hashtable ToHashtable()
        {
            Hashtable hashtable = new Hashtable();

            if (this.Align != this.Align_DefaultValue)
            {
                hashtable.Add((object)"align", (object)Highstock.FirstCharacterToLower(this.Align.ToString()));
            }
            bool?nullable1 = this.AllowOverlap;
            bool?nullable2 = this.AllowOverlap_DefaultValue;

            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"allowOverlap", (object)this.AllowOverlap);
            }
            if (this.BorderColor != this.BorderColor_DefaultValue)
            {
                hashtable.Add((object)"borderColor", (object)this.BorderColor);
            }
            double?nullable3 = this.BorderRadius;
            double?nullable4 = this.BorderRadius_DefaultValue;

            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"borderRadius", (object)this.BorderRadius);
            }
            nullable4 = this.BorderWidth;
            nullable3 = this.BorderWidth_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"borderWidth", (object)this.BorderWidth);
            }
            if (this.ClassName != this.ClassName_DefaultValue)
            {
                hashtable.Add((object)"className", (object)this.ClassName);
            }
            if (this.Color != this.Color_DefaultValue)
            {
                hashtable.Add((object)"color", (object)this.Color);
            }
            nullable2 = this.Crop;
            nullable1 = this.Crop_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"crop", (object)this.Crop);
            }
            nullable1 = this.Defer;
            nullable2 = this.Defer_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"defer", (object)this.Defer);
            }
            nullable2 = this.Enabled;
            nullable1 = this.Enabled_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"enabled", (object)this.Enabled);
            }
            if (this.Format != this.Format_DefaultValue)
            {
                hashtable.Add((object)"format", (object)this.Format);
            }
            if (this.Formatter != this.Formatter_DefaultValue)
            {
                hashtable.Add((object)"formatter", (object)this.Formatter);
                Highstock.AddFunction("ArearangeSeriesDataLabelsFormatter.formatter", this.Formatter);
            }
            nullable1 = this.Inside;
            nullable2 = this.Inside_DefaultValue;
            if (nullable1.GetValueOrDefault() != nullable2.GetValueOrDefault() ||
                nullable1.HasValue != nullable2.HasValue)
            {
                hashtable.Add((object)"inside", (object)this.Inside);
            }
            if (this.Overflow != this.Overflow_DefaultValue)
            {
                hashtable.Add((object)"overflow", (object)Highstock.FirstCharacterToLower(this.Overflow.ToString()));
            }
            nullable3 = this.Padding;
            nullable4 = this.Padding_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"padding", (object)this.Padding);
            }
            nullable4 = this.Rotation;
            nullable3 = this.Rotation_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"rotation", (object)this.Rotation);
            }
            if (this.Shadow.IsDirty())
            {
                hashtable.Add((object)"shadow", (object)this.Shadow.ToHashtable());
            }
            if (this.Shape != this.Shape_DefaultValue)
            {
                hashtable.Add((object)"shape", (object)this.Shape);
            }
            if (this.Style != this.Style_DefaultValue)
            {
                hashtable.Add((object)"style", (object)this.Style);
            }
            nullable2 = this.UseHTML;
            nullable1 = this.UseHTML_DefaultValue;
            if (nullable2.GetValueOrDefault() != nullable1.GetValueOrDefault() ||
                nullable2.HasValue != nullable1.HasValue)
            {
                hashtable.Add((object)"useHTML", (object)this.UseHTML);
            }
            if (this.VerticalAlign != this.VerticalAlign_DefaultValue)
            {
                hashtable.Add((object)"verticalAlign",
                              (object)Highstock.FirstCharacterToLower(this.VerticalAlign.ToString()));
            }
            nullable3 = this.XHigh;
            nullable4 = this.XHigh_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"xHigh", (object)this.XHigh);
            }
            nullable4 = this.XLow;
            nullable3 = this.XLow_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"xLow", (object)this.XLow);
            }
            nullable3 = this.YHigh;
            nullable4 = this.YHigh_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"yHigh", (object)this.YHigh);
            }
            nullable4 = this.YLow;
            nullable3 = this.YLow_DefaultValue;
            if (nullable4.GetValueOrDefault() != nullable3.GetValueOrDefault() ||
                nullable4.HasValue != nullable3.HasValue)
            {
                hashtable.Add((object)"yLow", (object)this.YLow);
            }
            nullable3 = this.ZIndex;
            nullable4 = this.ZIndex_DefaultValue;
            if (nullable3.GetValueOrDefault() != nullable4.GetValueOrDefault() ||
                nullable3.HasValue != nullable4.HasValue)
            {
                hashtable.Add((object)"zIndex", (object)this.ZIndex);
            }
            return(hashtable);
        }