internal override Hashtable ToHashtable() { Hashtable hashtables = new Hashtable(); if (this.Align != this.Align_DefaultValue) { ExportingButtonsContextButtonAlign align = this.Align; hashtables.Add("align", Highcharts.FirstCharacterToLower(align.ToString())); } bool?enabled = this.Enabled; bool?enabledDefaultValue = this.Enabled_DefaultValue; if ((enabled.GetValueOrDefault() == enabledDefaultValue.GetValueOrDefault() ? enabled.HasValue != enabledDefaultValue.HasValue : true)) { hashtables.Add("enabled", this.Enabled); } double?height = this.Height; double?heightDefaultValue = this.Height_DefaultValue; if ((height.GetValueOrDefault() == heightDefaultValue.GetValueOrDefault() ? height.HasValue != heightDefaultValue.HasValue : true)) { hashtables.Add("height", this.Height); } if (this.MenuItems != this.MenuItems_DefaultValue) { hashtables.Add("menuItems", this.MenuItems); } if (this.Onclick != this.Onclick_DefaultValue) { hashtables.Add("onclick", this.Onclick); Highcharts.AddFunction("ExportingButtonsContextButtonOnclick.onclick", this.Onclick); } if (this.Symbol != this.Symbol_DefaultValue) { hashtables.Add("symbol", this.Symbol); } if (this.SymbolFill != this.SymbolFill_DefaultValue) { hashtables.Add("symbolFill", this.SymbolFill); } heightDefaultValue = this.SymbolSize; height = this.SymbolSize_DefaultValue; if ((heightDefaultValue.GetValueOrDefault() == height.GetValueOrDefault() ? heightDefaultValue.HasValue != height.HasValue : true)) { hashtables.Add("symbolSize", this.SymbolSize); } if (this.SymbolStroke != this.SymbolStroke_DefaultValue) { hashtables.Add("symbolStroke", this.SymbolStroke); } height = this.SymbolStrokeWidth; heightDefaultValue = this.SymbolStrokeWidth_DefaultValue; if ((height.GetValueOrDefault() == heightDefaultValue.GetValueOrDefault() ? height.HasValue != heightDefaultValue.HasValue : true)) { hashtables.Add("symbolStrokeWidth", this.SymbolStrokeWidth); } heightDefaultValue = this.SymbolX; height = this.SymbolX_DefaultValue; if ((heightDefaultValue.GetValueOrDefault() == height.GetValueOrDefault() ? heightDefaultValue.HasValue != height.HasValue : true)) { hashtables.Add("symbolX", this.SymbolX); } height = this.SymbolY; heightDefaultValue = this.SymbolY_DefaultValue; if ((height.GetValueOrDefault() == heightDefaultValue.GetValueOrDefault() ? height.HasValue != heightDefaultValue.HasValue : true)) { hashtables.Add("symbolY", this.SymbolY); } if (this.Text != this.Text_DefaultValue) { hashtables.Add("text", this.Text); } if (this.Theme != this.Theme_DefaultValue) { hashtables.Add("theme", this.Theme); } if (this.VerticalAlign != this.VerticalAlign_DefaultValue) { ExportingButtonsContextButtonVerticalAlign verticalAlign = this.VerticalAlign; hashtables.Add("verticalAlign", Highcharts.FirstCharacterToLower(verticalAlign.ToString())); } heightDefaultValue = this.Width; height = this.Width_DefaultValue; if ((heightDefaultValue.GetValueOrDefault() == height.GetValueOrDefault() ? heightDefaultValue.HasValue != height.HasValue : true)) { hashtables.Add("width", this.Width); } height = this.X; heightDefaultValue = this.X_DefaultValue; if ((height.GetValueOrDefault() == heightDefaultValue.GetValueOrDefault() ? height.HasValue != heightDefaultValue.HasValue : true)) { hashtables.Add("x", this.X); } heightDefaultValue = this.Y; height = this.Y_DefaultValue; if ((heightDefaultValue.GetValueOrDefault() == height.GetValueOrDefault() ? heightDefaultValue.HasValue != height.HasValue : true)) { hashtables.Add("y", this.Y); } return(hashtables); }
public ExportingButtonsContextButton() { int num = 2; ExportingButtonsContextButtonAlign exportingButtonsContextButtonAlign = (ExportingButtonsContextButtonAlign)num; this.Align_DefaultValue = (ExportingButtonsContextButtonAlign)num; this.Align = exportingButtonsContextButtonAlign; bool?nullable = new bool?(true); this.Enabled_DefaultValue = nullable; this.Enabled = nullable; double?nullable1 = new double?((double)20); this.Height_DefaultValue = nullable1; this.Height = nullable1; List <MenuItem> menuItems = new List <MenuItem>(); List <MenuItem> menuItems1 = menuItems; this.MenuItems_DefaultValue = menuItems; this.MenuItems = menuItems1; string str = ""; string str1 = str; this.Onclick_DefaultValue = str; this.Onclick = str1; string str2 = "menu"; str1 = str2; this.Symbol_DefaultValue = str2; this.Symbol = str1; string str3 = "#666666"; str1 = str3; this.SymbolFill_DefaultValue = str3; this.SymbolFill = str1; nullable1 = new double?((double)14); this.SymbolSize_DefaultValue = nullable1; this.SymbolSize = nullable1; string str4 = "#666666"; str1 = str4; this.SymbolStroke_DefaultValue = str4; this.SymbolStroke = str1; nullable1 = new double?((double)1); this.SymbolStrokeWidth_DefaultValue = nullable1; this.SymbolStrokeWidth = nullable1; nullable1 = new double?(12.5); this.SymbolX_DefaultValue = nullable1; this.SymbolX = nullable1; nullable1 = new double?(10.5); this.SymbolY_DefaultValue = nullable1; this.SymbolY = nullable1; string str5 = "null"; str1 = str5; this.Text_DefaultValue = str5; this.Text = str1; string str6 = ""; object obj = str6; this.Theme_DefaultValue = str6; this.Theme = obj; int num1 = 0; ExportingButtonsContextButtonVerticalAlign exportingButtonsContextButtonVerticalAlign = (ExportingButtonsContextButtonVerticalAlign)num1; this.VerticalAlign_DefaultValue = (ExportingButtonsContextButtonVerticalAlign)num1; this.VerticalAlign = exportingButtonsContextButtonVerticalAlign; nullable1 = new double?((double)24); this.Width_DefaultValue = nullable1; this.Width = nullable1; nullable1 = new double?((double)-10); this.X_DefaultValue = nullable1; this.X = nullable1; nullable1 = new double?(0); this.Y_DefaultValue = nullable1; this.Y = nullable1; }