コード例 #1
0
 void configForm_CurrentChartConfigurationChanged(object sender, EventArgs e)
 {
     if (cbxChart.SelectedIndex == 0)
     {
         ChartConfigurationForm frm = (ChartConfigurationForm)sender;
         frm.CurrentChartConfiguration.LoadChartAndComponentConfigurationItemsFromString(customPropertyOfChart);
     }
 }
コード例 #2
0
 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!");
     }
 }
コード例 #3
0
 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!");
     }
 }
コード例 #4
0
 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!");
     }
 }
コード例 #5
0
ファイル: Bar.cs プロジェクト: sasiit23/smah1
        public override BaseChartConfiguration CreateChartConfiguration(
            ChartConfigurationForm form)
        {
            if (Parent == null)
            {
                throw new ArgumentException("Component is unattached any chart!");
            }

            return(new Configuration.BarChartConfiguration(Parent.Chart, form));
        }
コード例 #6
0
        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();
        }
コード例 #7
0
        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();
        }
コード例 #8
0
 public EmptyChartConfiguration(Chart chart, ChartConfigurationForm parentForm)
     : base(chart, parentForm)
 {
 }
コード例 #9
0
ファイル: BaseChartComponent.cs プロジェクト: sasiit23/smah1
 public abstract BaseChartConfiguration CreateChartConfiguration(ChartConfigurationForm form);