private void ShowChart(object sender, EventArgs e) { if (dialogImage != null) { dialogImage.ShowDialog(); } }
protected override void SolveInstance(IGH_DataAccess DA) { bool showGraph = false; string title = ""; List <double> values = new List <double>(); List <string> names = new List <string>(); string textFormat = ""; List <Color> colors = new List <Color>(); string path = ""; DA.GetData(0, ref showGraph); DA.GetData(1, ref title); DA.GetDataList(2, values); DA.GetDataList(3, names); DA.GetData(4, ref textFormat); DA.GetDataList(5, colors); DA.GetData(6, ref path); ColumnChart chartObject = new ColumnChart(); chartObject.ColumnChartData(showGraph, title, values, names, textFormat, colors, path); if (showGraph) { chartObject.ShowDialog(); } chartObject.Export(); string reportPart = chartObject.Create(); DA.SetData(0, reportPart); }