void configForm_CurrentChartConfigurationChanged(object sender, EventArgs e) { if (cbxChart.SelectedIndex == 0) { ChartConfigurationForm frm = (ChartConfigurationForm)sender; frm.CurrentChartConfiguration.LoadChartAndComponentConfigurationItemsFromString(customPropertyOfChart); } }
public BarChartConfiguration(Chart chart, ChartConfigurationForm parentForm) : base(chart, parentForm) { Bar = Chart.Component as Bar; if (Bar == null) { throw new ArgumentException("Chart.Component is not Bar!"); } }
public AxileChartConfiguration(Chart chart, ChartConfigurationForm parentForm) : base(chart, parentForm) { AxileBase = Chart.Component as AxileBase; if (AxileBase == null) { throw new ArgumentException("Chart.Component is not AxileBase!"); } }
public LineChartConfiguration(Chart chart, ChartConfigurationForm parentForm) : base(chart, parentForm) { Line = Chart.Component as Line; if (Line == null) { throw new ArgumentException("Chart.Component is not Line!"); } }
public override BaseChartConfiguration CreateChartConfiguration( ChartConfigurationForm form) { if (Parent == null) { throw new ArgumentException("Component is unattached any chart!"); } return(new Configuration.BarChartConfiguration(Parent.Chart, form)); }
private void NewChartConfigurationForm() { panelConfigurationForm.Controls.Clear(); if (configForm != null) { configForm.Close(); configForm = null; } configForm = new ChartConfigurationForm(chart1); configForm.FormBorderStyle = FormBorderStyle.None; configForm.TopLevel = false; configForm.Dock = DockStyle.Fill; panelConfigurationForm.Controls.Add(configForm); configForm.Show(); }
private void NewChartConfigurationForm() { panelConfigurationForm.Controls.Clear(); if (configForm != null) { configForm.Close(); configForm = null; } setCostumConfigurationPropertyForCurrentBarComponentToolStripMenuItem.Checked = false; configForm = new ChartConfigurationForm(chart1); if (bAddCustomIcon) { configForm.LoadIcon = global::HowToWork.Properties.Resources.Open16X16; configForm.SaveIcon = global::HowToWork.Properties.Resources.Save16X16; } configForm.FormBorderStyle = FormBorderStyle.None; configForm.TopLevel = false; configForm.Dock = DockStyle.Fill; panelConfigurationForm.Controls.Add(configForm); configForm.Show(); }
public EmptyChartConfiguration(Chart chart, ChartConfigurationForm parentForm) : base(chart, parentForm) { }
public abstract BaseChartConfiguration CreateChartConfiguration(ChartConfigurationForm form);