Пример #1
0
        internal override Hashtable ToHashtable()
        {
            Hashtable hashtables = new Hashtable();

            if (this.Align != this.Align_DefaultValue)
            {
                hashtables.Add("align", this.Align);
            }
            if (this.VerticalAlign != this.VerticalAlign_DefaultValue)
            {
                ChartResetZoomButtonPositionVerticalAlign verticalAlign = this.VerticalAlign;
                hashtables.Add("verticalAlign", Highcharts.FirstCharacterToLower(verticalAlign.ToString()));
            }
            double?x             = this.X;
            double?xDefaultValue = this.X_DefaultValue;

            if ((x.GetValueOrDefault() == xDefaultValue.GetValueOrDefault() ? x.HasValue != xDefaultValue.HasValue : true))
            {
                hashtables.Add("x", this.X);
            }
            xDefaultValue = this.Y;
            x             = this.Y_DefaultValue;
            if ((xDefaultValue.GetValueOrDefault() == x.GetValueOrDefault() ? xDefaultValue.HasValue != x.HasValue : true))
            {
                hashtables.Add("y", this.Y);
            }
            return(hashtables);
        }
Пример #2
0
        public ChartResetZoomButtonPosition()
        {
            object obj = null;
            string str = (string)obj;

            this.Align_DefaultValue = (string)obj;
            this.Align = str;
            int num = 0;
            ChartResetZoomButtonPositionVerticalAlign chartResetZoomButtonPositionVerticalAlign = (ChartResetZoomButtonPositionVerticalAlign)num;

            this.VerticalAlign_DefaultValue = (ChartResetZoomButtonPositionVerticalAlign)num;
            this.VerticalAlign = chartResetZoomButtonPositionVerticalAlign;
            double?nullable = new double?((double)-10);

            this.X_DefaultValue = nullable;
            this.X              = nullable;
            nullable            = new double?((double)10);
            this.Y_DefaultValue = nullable;
            this.Y              = nullable;
        }