public PaintingDataTable() { // // Required for Windows Form Designer support // InitializeComponent(); DataTable1.Checked = true; ShowTitle.Checked = true; FontSize.SelectedIndex = 0; BorderColor.SelectedIndex = 1; TableColor.SelectedIndex = 2; RotateAxisLabel.SelectedIndex = 0; chart1.ChartAreas["Default"].AxisX.TitleFont = new Font("Arial", 8); if(DataTable1.Checked && TableHelper == null) { TableHelper = new ChartDataTableHelper(); TableHelper.Initialize(chart1);//, ShowTotals.Checked); TableHelper.TableColor = Color.FromName(this.TableColor.SelectedText); TableHelper.BorderColor = Color.FromName(this.BorderColor.SelectedText); } }
private void DataTable1_CheckedChanged_1(object sender, System.EventArgs e) { if(TableHelper == null) { TableHelper = new ChartDataTableHelper(); TableHelper.Initialize(chart1);//, ShowTotals.Checked); TableHelper.TableColor = Color.FromName(this.TableColor.SelectedText); TableHelper.BorderColor = Color.FromName(this.BorderColor.SelectedText); } if(DataTable1.Checked) TableHelper.AddDataTable("Default"); else TableHelper.RemoveDataTable("Default"); }