示例#1
0
        internal override Hashtable ToHashtable()
        {
            Hashtable hashtables = new Hashtable();

            if (this.Animation.IsDirty())
            {
                hashtables.Add("animation", this.Animation.ToJSON());
            }
            double?animationLimit             = this.AnimationLimit;
            double?animationLimitDefaultValue = this.AnimationLimit_DefaultValue;

            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("animationLimit", this.AnimationLimit);
            }
            if (this.ClassName != this.ClassName_DefaultValue)
            {
                hashtables.Add("className", this.ClassName);
            }
            animationLimitDefaultValue = this.ColorIndex;
            animationLimit             = this.ColorIndex_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("colorIndex", this.ColorIndex);
            }
            if (this.Cursor != this.Cursor_DefaultValue)
            {
                SolidgaugeSeriesCursor cursor = this.Cursor;
                hashtables.Add("cursor", Highcharts.FirstCharacterToLower(cursor.ToString()));
            }
            if (this.Data.Any <SolidgaugeSeriesData>())
            {
                hashtables.Add("data", base.HashifyList(this.Data));
            }
            if (this.DataLabels.IsDirty())
            {
                hashtables.Add("dataLabels", this.DataLabels.ToHashtable());
            }
            if (this.Description != this.Description_DefaultValue)
            {
                hashtables.Add("description", this.Description);
            }
            bool?enableMouseTracking             = this.EnableMouseTracking;
            bool?enableMouseTrackingDefaultValue = this.EnableMouseTracking_DefaultValue;

            if ((enableMouseTracking.GetValueOrDefault() == enableMouseTrackingDefaultValue.GetValueOrDefault() ? enableMouseTracking.HasValue != enableMouseTrackingDefaultValue.HasValue : true))
            {
                hashtables.Add("enableMouseTracking", this.EnableMouseTracking);
            }
            if (this.Events.IsDirty())
            {
                hashtables.Add("events", this.Events.ToHashtable());
            }
            enableMouseTrackingDefaultValue = this.GetExtremesFromAll;
            enableMouseTracking             = this.GetExtremesFromAll_DefaultValue;
            if ((enableMouseTrackingDefaultValue.GetValueOrDefault() == enableMouseTracking.GetValueOrDefault() ? enableMouseTrackingDefaultValue.HasValue != enableMouseTracking.HasValue : true))
            {
                hashtables.Add("getExtremesFromAll", this.GetExtremesFromAll);
            }
            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.Linecap != this.Linecap_DefaultValue)
            {
                SolidgaugeSeriesLinecap linecap = this.Linecap;
                hashtables.Add("linecap", Highcharts.FirstCharacterToLower(linecap.ToString()));
            }
            if (this.Name != this.Name_DefaultValue)
            {
                hashtables.Add("name", this.Name);
            }
            animationLimit             = this.Overshoot;
            animationLimitDefaultValue = this.Overshoot_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("overshoot", this.Overshoot);
            }
            if (this.Point.IsDirty())
            {
                hashtables.Add("point", this.Point.ToHashtable());
            }
            enableMouseTracking             = this.Rounded;
            enableMouseTrackingDefaultValue = this.Rounded_DefaultValue;
            if ((enableMouseTracking.GetValueOrDefault() == enableMouseTrackingDefaultValue.GetValueOrDefault() ? enableMouseTracking.HasValue != enableMouseTrackingDefaultValue.HasValue : true))
            {
                hashtables.Add("rounded", this.Rounded);
            }
            enableMouseTrackingDefaultValue = this.Selected;
            enableMouseTracking             = this.Selected_DefaultValue;
            if ((enableMouseTrackingDefaultValue.GetValueOrDefault() == enableMouseTracking.GetValueOrDefault() ? enableMouseTrackingDefaultValue.HasValue != enableMouseTracking.HasValue : true))
            {
                hashtables.Add("selected", this.Selected);
            }
            enableMouseTracking             = this.ShowCheckbox;
            enableMouseTrackingDefaultValue = this.ShowCheckbox_DefaultValue;
            if ((enableMouseTracking.GetValueOrDefault() == enableMouseTrackingDefaultValue.GetValueOrDefault() ? enableMouseTracking.HasValue != enableMouseTrackingDefaultValue.HasValue : true))
            {
                hashtables.Add("showCheckbox", this.ShowCheckbox);
            }
            enableMouseTrackingDefaultValue = this.ShowInLegend;
            enableMouseTracking             = this.ShowInLegend_DefaultValue;
            if ((enableMouseTrackingDefaultValue.GetValueOrDefault() == enableMouseTracking.GetValueOrDefault() ? enableMouseTrackingDefaultValue.HasValue != enableMouseTracking.HasValue : true))
            {
                hashtables.Add("showInLegend", this.ShowInLegend);
            }
            enableMouseTracking             = this.StickyTracking;
            enableMouseTrackingDefaultValue = this.StickyTracking_DefaultValue;
            if ((enableMouseTracking.GetValueOrDefault() == enableMouseTrackingDefaultValue.GetValueOrDefault() ? enableMouseTracking.HasValue != enableMouseTrackingDefaultValue.HasValue : true))
            {
                hashtables.Add("stickyTracking", this.StickyTracking);
            }
            animationLimitDefaultValue = this.Threshold;
            animationLimit             = this.Threshold_DefaultValue;
            if ((animationLimitDefaultValue.GetValueOrDefault() == animationLimit.GetValueOrDefault() ? animationLimitDefaultValue.HasValue != animationLimit.HasValue : true))
            {
                hashtables.Add("threshold", this.Threshold);
            }
            if (this.Tooltip.IsDirty())
            {
                hashtables.Add("tooltip", this.Tooltip.ToHashtable());
            }
            if (this.Type != this.Type_DefaultValue)
            {
                SolidgaugeSeriesType type = this.Type;
                hashtables.Add("type", Highcharts.FirstCharacterToLower(type.ToString()));
            }
            enableMouseTrackingDefaultValue = this.Visible;
            enableMouseTracking             = this.Visible_DefaultValue;
            if ((enableMouseTrackingDefaultValue.GetValueOrDefault() == enableMouseTracking.GetValueOrDefault() ? enableMouseTrackingDefaultValue.HasValue != enableMouseTracking.HasValue : true))
            {
                hashtables.Add("visible", this.Visible);
            }
            enableMouseTracking             = this.Wrap;
            enableMouseTrackingDefaultValue = this.Wrap_DefaultValue;
            if ((enableMouseTracking.GetValueOrDefault() == enableMouseTrackingDefaultValue.GetValueOrDefault() ? enableMouseTracking.HasValue != enableMouseTrackingDefaultValue.HasValue : true))
            {
                hashtables.Add("wrap", this.Wrap);
            }
            if (this.XAxis != this.XAxis_DefaultValue)
            {
                hashtables.Add("xAxis", this.XAxis);
            }
            if (this.YAxis != this.YAxis_DefaultValue)
            {
                hashtables.Add("yAxis", this.YAxis);
            }
            animationLimit             = this.ZIndex;
            animationLimitDefaultValue = this.ZIndex_DefaultValue;
            if ((animationLimit.GetValueOrDefault() == animationLimitDefaultValue.GetValueOrDefault() ? animationLimit.HasValue != animationLimitDefaultValue.HasValue : true))
            {
                hashtables.Add("zIndex", this.ZIndex);
            }
            return(hashtables);
        }
示例#2
0
        public SolidgaugeSeries()
        {
            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?nullable = null;

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

            this.ClassName_DefaultValue = str;
            this.ClassName = str1;
            nullable       = null;
            this.ColorIndex_DefaultValue = nullable;
            this.ColorIndex = nullable;
            int num = 0;
            SolidgaugeSeriesCursor solidgaugeSeriesCursor = (SolidgaugeSeriesCursor)num;

            this.Cursor_DefaultValue = (SolidgaugeSeriesCursor)num;
            this.Cursor = solidgaugeSeriesCursor;
            List <SolidgaugeSeriesData> solidgaugeSeriesDatas  = new List <SolidgaugeSeriesData>();
            List <SolidgaugeSeriesData> solidgaugeSeriesDatas1 = solidgaugeSeriesDatas;

            this.Data_DefaultValue = solidgaugeSeriesDatas;
            this.Data = solidgaugeSeriesDatas1;
            SolidgaugeSeriesDataLabels solidgaugeSeriesDataLabel  = new SolidgaugeSeriesDataLabels();
            SolidgaugeSeriesDataLabels solidgaugeSeriesDataLabel1 = solidgaugeSeriesDataLabel;

            this.DataLabels_DefaultValue = solidgaugeSeriesDataLabel;
            this.DataLabels = solidgaugeSeriesDataLabel1;
            string str2 = "undefined";

            str1 = str2;
            this.Description_DefaultValue = str2;
            this.Description = str1;
            bool?nullable1 = new bool?(true);

            this.EnableMouseTracking_DefaultValue = nullable1;
            this.EnableMouseTracking = nullable1;
            SolidgaugeSeriesEvents solidgaugeSeriesEvent  = new SolidgaugeSeriesEvents();
            SolidgaugeSeriesEvents solidgaugeSeriesEvent1 = solidgaugeSeriesEvent;

            this.Events_DefaultValue = solidgaugeSeriesEvent;
            this.Events = solidgaugeSeriesEvent1;
            nullable1   = new bool?(false);
            this.GetExtremesFromAll_DefaultValue = nullable1;
            this.GetExtremesFromAll = nullable1;
            string str3 = "";

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

            this.Keys_DefaultValue = strs;
            this.Keys = strs1;
            nullable  = null;
            this.LegendIndex_DefaultValue = nullable;
            this.LegendIndex = nullable;
            int num1 = 1;
            SolidgaugeSeriesLinecap solidgaugeSeriesLinecap = (SolidgaugeSeriesLinecap)num1;

            this.Linecap_DefaultValue = (SolidgaugeSeriesLinecap)num1;
            this.Linecap = solidgaugeSeriesLinecap;
            object obj = null;

            str1 = (string)obj;
            this.Name_DefaultValue = (string)obj;
            this.Name = str1;
            nullable  = new double?(0);
            this.Overshoot_DefaultValue = nullable;
            this.Overshoot = nullable;
            SolidgaugeSeriesPoint solidgaugeSeriesPoint  = new SolidgaugeSeriesPoint();
            SolidgaugeSeriesPoint solidgaugeSeriesPoint1 = solidgaugeSeriesPoint;

            this.Point_DefaultValue = solidgaugeSeriesPoint;
            this.Point = solidgaugeSeriesPoint1;
            nullable1  = new bool?(false);
            this.Rounded_DefaultValue = nullable1;
            this.Rounded = nullable1;
            nullable1    = new bool?(false);
            this.Selected_DefaultValue = nullable1;
            this.Selected = nullable1;
            nullable1     = new bool?(false);
            this.ShowCheckbox_DefaultValue = nullable1;
            this.ShowCheckbox = nullable1;
            nullable1         = null;
            this.ShowInLegend_DefaultValue = nullable1;
            this.ShowInLegend = nullable1;
            nullable1         = new bool?(true);
            this.StickyTracking_DefaultValue = nullable1;
            this.StickyTracking         = nullable1;
            nullable                    = null;
            this.Threshold_DefaultValue = nullable;
            this.Threshold              = nullable;
            SolidgaugeSeriesTooltip solidgaugeSeriesTooltip  = new SolidgaugeSeriesTooltip();
            SolidgaugeSeriesTooltip solidgaugeSeriesTooltip1 = solidgaugeSeriesTooltip;

            this.Tooltip_DefaultValue = solidgaugeSeriesTooltip;
            this.Tooltip = solidgaugeSeriesTooltip1;
            int num2 = 0;
            SolidgaugeSeriesType solidgaugeSeriesType = (SolidgaugeSeriesType)num2;

            this.Type_DefaultValue = (SolidgaugeSeriesType)num2;
            this.Type = solidgaugeSeriesType;
            nullable1 = new bool?(true);
            this.Visible_DefaultValue = nullable1;
            this.Visible           = nullable1;
            nullable1              = new bool?(true);
            this.Wrap_DefaultValue = nullable1;
            this.Wrap              = nullable1;
            string str4 = "0";

            str1 = str4;
            this.XAxis_DefaultValue = str4;
            this.XAxis = str1;
            string str5 = "0";

            str1 = str5;
            this.YAxis_DefaultValue = str5;
            this.YAxis = str1;
            nullable   = null;
            this.ZIndex_DefaultValue = nullable;
            this.ZIndex = nullable;
        }