Ejemplo n.º 1
0
        internal override Hashtable ToHashtable()
        {
            Hashtable hashtables = new Hashtable();

            if (this.ClassName != this.ClassName_DefaultValue)
            {
                hashtables.Add("className", this.ClassName);
            }
            if (this.Color != this.Color_DefaultValue)
            {
                hashtables.Add("color", this.Color);
            }
            if (this.DashStyle != this.DashStyle_DefaultValue)
            {
                ZAxisPlotLinesDashStyle dashStyle = this.DashStyle;
                hashtables.Add("dashStyle", Highcharts.FirstCharacterToLower(dashStyle.ToString()));
            }
            if (this.Events != this.Events_DefaultValue)
            {
                hashtables.Add("events", this.Events);
            }
            if (this.Id != this.Id_DefaultValue)
            {
                hashtables.Add("id", this.Id);
            }
            if (this.Label.IsDirty())
            {
                hashtables.Add("label", this.Label.ToHashtable());
            }
            double?value             = this.Value;
            double?valueDefaultValue = this.Value_DefaultValue;

            if ((value.GetValueOrDefault() == valueDefaultValue.GetValueOrDefault() ? value.HasValue != valueDefaultValue.HasValue : true))
            {
                hashtables.Add("value", this.Value);
            }
            valueDefaultValue = this.Width;
            value             = this.Width_DefaultValue;
            if ((valueDefaultValue.GetValueOrDefault() == value.GetValueOrDefault() ? valueDefaultValue.HasValue != value.HasValue : true))
            {
                hashtables.Add("width", this.Width);
            }
            value             = this.ZIndex;
            valueDefaultValue = this.ZIndex_DefaultValue;
            if ((value.GetValueOrDefault() == valueDefaultValue.GetValueOrDefault() ? value.HasValue != valueDefaultValue.HasValue : true))
            {
                hashtables.Add("zIndex", this.ZIndex);
            }
            return(hashtables);
        }
Ejemplo n.º 2
0
        public ZAxisPlotLines()
        {
            string str  = "";
            string str1 = str;

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

            str1 = (string)obj;
            this.Color_DefaultValue = (string)obj;
            this.Color = str1;
            int num = 0;
            ZAxisPlotLinesDashStyle zAxisPlotLinesDashStyle = (ZAxisPlotLinesDashStyle)num;

            this.DashStyle_DefaultValue = (ZAxisPlotLinesDashStyle)num;
            this.DashStyle = zAxisPlotLinesDashStyle;
            object obj1 = null;
            object obj2 = obj1;

            this.Events_DefaultValue = obj1;
            this.Events = obj2;
            object obj3 = null;

            str1 = (string)obj3;
            this.Id_DefaultValue = (string)obj3;
            this.Id = str1;
            ZAxisPlotLinesLabel zAxisPlotLinesLabel  = new ZAxisPlotLinesLabel();
            ZAxisPlotLinesLabel zAxisPlotLinesLabel1 = zAxisPlotLinesLabel;

            this.Label_DefaultValue = zAxisPlotLinesLabel;
            this.Label = zAxisPlotLinesLabel1;
            double?nullable = null;

            this.Value_DefaultValue = nullable;
            this.Value = nullable;
            nullable   = null;
            this.Width_DefaultValue = nullable;
            this.Width = nullable;
            nullable   = null;
            this.ZIndex_DefaultValue = nullable;
            this.ZIndex = nullable;
        }