Пример #1
0
        public XAxisCrosshair()
        {
            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;
            XAxisCrosshairDashStyle xAxisCrosshairDashStyle = (XAxisCrosshairDashStyle)num;

            this.DashStyle_DefaultValue = (XAxisCrosshairDashStyle)num;
            this.DashStyle = xAxisCrosshairDashStyle;
            bool?nullable = new bool?(true);

            this.Snap_DefaultValue = nullable;
            this.Snap = nullable;
            double?nullable1 = null;

            this.Width_DefaultValue = nullable1;
            this.Width = nullable1;
            nullable1  = new double?((double)2);
            this.ZIndex_DefaultValue = nullable1;
            this.ZIndex = nullable1;
        }
Пример #2
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)
            {
                XAxisCrosshairDashStyle dashStyle = this.DashStyle;
                hashtables.Add("dashStyle", Highcharts.FirstCharacterToLower(dashStyle.ToString()));
            }
            bool?snap             = this.Snap;
            bool?snapDefaultValue = this.Snap_DefaultValue;

            if ((snap.GetValueOrDefault() == snapDefaultValue.GetValueOrDefault() ? snap.HasValue != snapDefaultValue.HasValue : true))
            {
                hashtables.Add("snap", this.Snap);
            }
            double?width             = this.Width;
            double?widthDefaultValue = this.Width_DefaultValue;

            if ((width.GetValueOrDefault() == widthDefaultValue.GetValueOrDefault() ? width.HasValue != widthDefaultValue.HasValue : true))
            {
                hashtables.Add("width", this.Width);
            }
            widthDefaultValue = this.ZIndex;
            width             = this.ZIndex_DefaultValue;
            if ((widthDefaultValue.GetValueOrDefault() == width.GetValueOrDefault() ? widthDefaultValue.HasValue != width.HasValue : true))
            {
                hashtables.Add("zIndex", this.ZIndex);
            }
            return(hashtables);
        }