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);
            }
            if (this.Animation.IsDirty())
            {
                hashtables.Add("animation", this.Animation.ToJSON());
            }
            double?animationLimit             = this.AnimationLimit;
            double?animationLimitDefaultValue = this.AnimationLimit_DefaultValue;

            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("animationLimit", this.AnimationLimit);
            }
            if (this.BorderColor != this.BorderColor_DefaultValue)
            {
                hashtables.Add("borderColor", this.BorderColor);
            }
            animationLimitDefaultValue = this.BorderRadius;
            animationLimit             = this.BorderRadius_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("borderRadius", this.BorderRadius);
            }
            animationLimit             = this.BorderWidth;
            animationLimitDefaultValue = this.BorderWidth_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("borderWidth", this.BorderWidth);
            }
            if (this.ClassName != this.ClassName_DefaultValue)
            {
                hashtables.Add("className", this.ClassName);
            }
            if (this.Color != this.Color_DefaultValue)
            {
                hashtables.Add("color", this.Color);
            }
            allowPointSelectDefaultValue = this.ColorByPoint;
            allowPointSelect             = this.ColorByPoint_DefaultValue;
            if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true))
            {
                hashtables.Add("colorByPoint", this.ColorByPoint);
            }
            animationLimitDefaultValue = this.ColorIndex;
            animationLimit             = this.ColorIndex_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("colorIndex", this.ColorIndex);
            }
            if (this.Colors != this.Colors_DefaultValue)
            {
                hashtables.Add("colors", this.Colors);
            }
            if (this.Cursor != this.Cursor_DefaultValue)
            {
                PlotOptionsWaterfallCursor cursor = this.Cursor;
                hashtables.Add("cursor", Highcharts.FirstCharacterToLower(cursor.ToString()));
            }
            if (this.DashStyle != this.DashStyle_DefaultValue)
            {
                hashtables.Add("dashStyle", this.DashStyle);
            }
            if (this.DataLabels.IsDirty())
            {
                hashtables.Add("dataLabels", this.DataLabels.ToHashtable());
            }
            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.GroupPadding;
            animationLimitDefaultValue = this.GroupPadding_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("groupPadding", this.GroupPadding);
            }
            animationLimitDefaultValue = this.GroupZPadding;
            animationLimit             = this.GroupZPadding_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("groupZPadding", this.GroupZPadding);
            }
            allowPointSelect             = this.Grouping;
            allowPointSelectDefaultValue = this.Grouping_DefaultValue;
            if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true))
            {
                hashtables.Add("grouping", this.Grouping);
            }
            if (this.Keys != this.Keys_DefaultValue)
            {
                hashtables.Add("keys", this.Keys);
            }
            if (this.LineColor != this.LineColor_DefaultValue)
            {
                hashtables.Add("lineColor", this.LineColor);
            }
            animationLimit             = this.LineWidth;
            animationLimitDefaultValue = this.LineWidth_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("lineWidth", this.LineWidth);
            }
            if (this.LinkedTo != this.LinkedTo_DefaultValue)
            {
                hashtables.Add("linkedTo", this.LinkedTo);
            }
            animationLimitDefaultValue = this.MaxPointWidth;
            animationLimit             = this.MaxPointWidth_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("maxPointWidth", this.MaxPointWidth);
            }
            animationLimit             = this.MinPointLength;
            animationLimitDefaultValue = this.MinPointLength_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("minPointLength", this.MinPointLength);
            }
            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)
            {
                PlotOptionsWaterfallPointIntervalUnit 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);
            }
            allowPointSelectDefaultValue = this.Selected;
            allowPointSelect             = this.Selected_DefaultValue;
            if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true))
            {
                hashtables.Add("selected", this.Selected);
            }
            if (this.Shadow != this.Shadow_DefaultValue)
            {
                hashtables.Add("shadow", this.Shadow);
            }
            allowPointSelect             = this.ShowCheckbox;
            allowPointSelectDefaultValue = this.ShowCheckbox_DefaultValue;
            if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true))
            {
                hashtables.Add("showCheckbox", this.ShowCheckbox);
            }
            allowPointSelectDefaultValue = this.ShowInLegend;
            allowPointSelect             = this.ShowInLegend_DefaultValue;
            if ((allowPointSelectDefaultValue.GetValueOrDefault() == allowPointSelect.GetValueOrDefault() ? allowPointSelectDefaultValue.HasValue != allowPointSelect.HasValue : true))
            {
                hashtables.Add("showInLegend", this.ShowInLegend);
            }
            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.UpColor != this.UpColor_DefaultValue)
            {
                hashtables.Add("upColor", this.UpColor);
            }
            allowPointSelect             = this.Visible;
            allowPointSelectDefaultValue = this.Visible_DefaultValue;
            if ((allowPointSelect.GetValueOrDefault() == allowPointSelectDefaultValue.GetValueOrDefault() ? allowPointSelect.HasValue != allowPointSelectDefaultValue.HasValue : true))
            {
                hashtables.Add("visible", this.Visible);
            }
            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 PlotOptionsWaterfall()
        {
            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  = "#333333";
            string str1 = str;

            this.BorderColor_DefaultValue = str;
            this.BorderColor = str1;
            nullable1        = new double?(0);
            this.BorderRadius_DefaultValue = nullable1;
            this.BorderRadius             = nullable1;
            nullable1                     = new double?((double)1);
            this.BorderWidth_DefaultValue = nullable1;
            this.BorderWidth              = nullable1;
            string str2 = "";

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

            str1 = (string)obj;
            this.Color_DefaultValue = (string)obj;
            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;
            PlotOptionsWaterfallCursor plotOptionsWaterfallCursor = (PlotOptionsWaterfallCursor)num;

            this.Cursor_DefaultValue = (PlotOptionsWaterfallCursor)num;
            this.Cursor = plotOptionsWaterfallCursor;
            string str3 = "Dot";

            str1 = str3;
            this.DashStyle_DefaultValue = str3;
            this.DashStyle = str1;
            PlotOptionsWaterfallDataLabels plotOptionsWaterfallDataLabel  = new PlotOptionsWaterfallDataLabels();
            PlotOptionsWaterfallDataLabels plotOptionsWaterfallDataLabel1 = plotOptionsWaterfallDataLabel;

            this.DataLabels_DefaultValue = plotOptionsWaterfallDataLabel;
            this.DataLabels         = plotOptionsWaterfallDataLabel1;
            nullable1               = new double?((double)25);
            this.Depth_DefaultValue = nullable1;
            this.Depth              = nullable1;
            string str4 = "undefined";

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

            str1 = str5;
            this.EdgeColor_DefaultValue = str5;
            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;
            PlotOptionsWaterfallEvents plotOptionsWaterfallEvent  = new PlotOptionsWaterfallEvents();
            PlotOptionsWaterfallEvents plotOptionsWaterfallEvent1 = plotOptionsWaterfallEvent;

            this.Events_DefaultValue = plotOptionsWaterfallEvent;
            this.Events = plotOptionsWaterfallEvent1;
            nullable    = new bool?(false);
            this.GetExtremesFromAll_DefaultValue = nullable;
            this.GetExtremesFromAll = nullable;
            nullable1 = new double?(0.2);
            this.GroupPadding_DefaultValue = nullable1;
            this.GroupPadding = nullable1;
            nullable1         = new double?((double)1);
            this.GroupZPadding_DefaultValue = nullable1;
            this.GroupZPadding         = nullable1;
            nullable                   = new bool?(true);
            this.Grouping_DefaultValue = nullable;
            this.Grouping              = nullable;
            List <string> strs2 = new List <string>();

            strs1 = strs2;
            this.Keys_DefaultValue = strs2;
            this.Keys = strs1;
            string str6 = "#333333";

            str1 = str6;
            this.LineColor_DefaultValue = str6;
            this.LineColor = str1;
            nullable1      = new double?((double)1);
            this.LineWidth_DefaultValue = nullable1;
            this.LineWidth = nullable1;
            string str7 = "";

            str1 = str7;
            this.LinkedTo_DefaultValue = str7;
            this.LinkedTo = str1;
            nullable1     = null;
            this.MaxPointWidth_DefaultValue = nullable1;
            this.MaxPointWidth = nullable1;
            nullable1          = new double?(0);
            this.MinPointLength_DefaultValue = nullable1;
            this.MinPointLength = nullable1;
            PlotOptionsWaterfallPoint plotOptionsWaterfallPoint  = new PlotOptionsWaterfallPoint();
            PlotOptionsWaterfallPoint plotOptionsWaterfallPoint1 = plotOptionsWaterfallPoint;

            this.Point_DefaultValue = plotOptionsWaterfallPoint;
            this.Point = plotOptionsWaterfallPoint1;
            nullable1  = new double?((double)1);
            this.PointInterval_DefaultValue = nullable1;
            this.PointInterval = nullable1;
            int num1 = 0;
            PlotOptionsWaterfallPointIntervalUnit plotOptionsWaterfallPointIntervalUnit = (PlotOptionsWaterfallPointIntervalUnit)num1;

            this.PointIntervalUnit_DefaultValue = (PlotOptionsWaterfallPointIntervalUnit)num1;
            this.PointIntervalUnit = plotOptionsWaterfallPointIntervalUnit;
            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;
            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;
            nullable          = new bool?(true);
            this.SoftThreshold_DefaultValue = nullable;
            this.SoftThreshold = nullable;
            PlotOptionsWaterfallStates plotOptionsWaterfallState  = new PlotOptionsWaterfallStates();
            PlotOptionsWaterfallStates plotOptionsWaterfallState1 = plotOptionsWaterfallState;

            this.States_DefaultValue = plotOptionsWaterfallState;
            this.States = plotOptionsWaterfallState1;
            nullable    = new bool?(true);
            this.StickyTracking_DefaultValue = nullable;
            this.StickyTracking         = nullable;
            nullable1                   = new double?(0);
            this.Threshold_DefaultValue = nullable1;
            this.Threshold              = nullable1;
            PlotOptionsWaterfallTooltip plotOptionsWaterfallTooltip  = new PlotOptionsWaterfallTooltip();
            PlotOptionsWaterfallTooltip plotOptionsWaterfallTooltip1 = plotOptionsWaterfallTooltip;

            this.Tooltip_DefaultValue = plotOptionsWaterfallTooltip;
            this.Tooltip = plotOptionsWaterfallTooltip1;
            object obj1 = null;

            str1 = (string)obj1;
            this.UpColor_DefaultValue = (string)obj1;
            this.UpColor = str1;
            nullable     = new bool?(true);
            this.Visible_DefaultValue = nullable;
            this.Visible = nullable;
            string str8 = "y";

            str1 = str8;
            this.ZoneAxis_DefaultValue = str8;
            this.ZoneAxis = str1;
            PlotOptionsWaterfallZones plotOptionsWaterfallZone  = new PlotOptionsWaterfallZones();
            PlotOptionsWaterfallZones plotOptionsWaterfallZone1 = plotOptionsWaterfallZone;

            this.Zones_DefaultValue = plotOptionsWaterfallZone;
            this.Zones = plotOptionsWaterfallZone1;
        }