Exemple #1
0
        internal Hashtable ToHashtable(JQChart chart)
        {
            Hashtable hashtable = new Hashtable();

            if (!string.IsNullOrEmpty(this.AddSeries))
            {
                hashtable.AddLiteral("addSeries", this.AddSeries, chart);
            }
            if (!string.IsNullOrEmpty(this.Click))
            {
                hashtable.AddLiteral("click", this.Click, chart);
            }
            if (!string.IsNullOrEmpty(this.Load))
            {
                hashtable.AddLiteral("load", this.Load, chart);
            }
            if (!string.IsNullOrEmpty(this.Redraw))
            {
                hashtable.AddLiteral("redraw", this.Redraw, chart);
            }
            if (!string.IsNullOrEmpty(this.Selection))
            {
                hashtable.AddLiteral("selection", this.Selection, chart);
            }
            return(hashtable);
        }