コード例 #1
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            ArrayList options = new ArrayList();

            options.AddRange(editor1.Options);

            if (checkBox1.Checked &&
                options.IndexOf(Steema.TeeChart.Editors.ChartEditorOptions.Groups) < 0)
            {
                options.Add(Steema.TeeChart.Editors.ChartEditorOptions.Groups);
            }
            if (!checkBox1.Checked)
            {
                options.Remove(Steema.TeeChart.Editors.ChartEditorOptions.Groups);
            }

            if (checkBox2.Checked &&
                options.IndexOf(Steema.TeeChart.Editors.ChartEditorOptions.GroupAll) < 0)
            {
                options.Add(Steema.TeeChart.Editors.ChartEditorOptions.GroupAll);
            }
            if (!checkBox2.Checked)
            {
                options.Remove(Steema.TeeChart.Editors.ChartEditorOptions.GroupAll);
            }

            editor1.Options = (Steema.TeeChart.Editors.ChartEditorOptions[])options.ToArray(typeof(Steema.TeeChart.Editors.ChartEditorOptions));

            editor1.ShowModal(this);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Steema.TeeChart.Editor editor = new Steema.TeeChart.Editor(tChart1);

            editor.Title = "My Charting App - Chart Editor";

            editor.DefaultTab = Editors.ChartEditorTabs.Axes;

            editor.ShowModal();
        }
コード例 #3
0
        private void toolStripButtonEditGraph_Click(object sender, EventArgs e)
        {
            Steema.TeeChart.Editor ed = new Steema.TeeChart.Editor(this.tChart1);
            ed.Title = "Pisces Editor";
            ed.ShowModal();

            // save colors to user settings.
            for (int i = 0; i < tChart1.Series.Count; i++)
            {
                Properties.Settings.Default.SetColor(i, tChart1.Series[i].Color);
                Steema.TeeChart.Styles.Line line = tChart1.Series[i] as  Steema.TeeChart.Styles.Line;
                if (line != null)
                {
                    Properties.Settings.Default.SetSeriesWidth(i, line.LinePen.Width);
                }
            }
        }
コード例 #4
0
 public void ShowEditor()
 {
     Steema.TeeChart.Editor ed = new Steema.TeeChart.Editor(this.tChart1);
     ed.Title = "Editor";
     ed.ShowModal();
 }
コード例 #5
0
 private void Chart_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     //Chart.ShowEditor();
     editor1.ShowModal();
     //Steema.TeeChart.Editors.SeriesEditor.ShowEditor(Chart.Series[0], Steema.TeeChart.Editors.ChartEditorTabs.SeriesDataSource);
 }
 private void button1_Click(object sender, System.EventArgs e)
 {
     editor1.ShowModal(this);
 }