示例#1
0
        private void editChartToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var editChartWindow = new Form();

            if (currentChart is Chart2D)
            {
                editChartWindow = new EditChartWindow(chart2d);
            }
            else if (currentChart is ComplexChart)
            {
                editChartWindow = new EditComplexChartWindow(complexChart);
            }

            else if (currentChart is Chart3DControl)
#if __MonoCS__
            { editChartWindow.Controls.Add(new Label()
                {
                    Dock = DockStyle.Fill, Text = Strings.Chart3D_is_not_supported_on_Mono, Font = new Font(FontFamily.GenericSansSerif, 20)
                }); }
#else
            { editChartWindow = new Chart3D.UI.EditChartWindow(chart3d, elementHostChart3d); }
#endif

            editChartWindow.ShowDialog();
        }
        private void editChartToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var editChartWindow = new Form();

            if (currentChart is Chart2D)
            {
                editChartWindow = new EditChartWindow(chart2d);
            }
            else if (currentChart is ComplexChart)
            {
                editChartWindow = new EditComplexChartWindow(complexChart);
            }
            else if (currentChart is Chart3DControl)
            {
                editChartWindow = new Chart3D.UI.EditChartWindow(chart3d, elementHostChart3d);
            }


            editChartWindow.ShowDialog();
        }
示例#3
0
        public override void Execute()
        {
            var editChartWindow = new Form();

            if (currentChart is Chart2D)
            {
                editChartWindow = new EditChartWindow(chart2d);
            }
            else if (currentChart is ComplexChart)
            {
                editChartWindow = new EditComplexChartWindow(complexChart);
            }
            else if (currentChart is Chart3DControl)
            {
                editChartWindow = new Charting.Chart3D.UI.EditChartWindow(chart3d, chart3d.ParentControl);
            }


            editChartWindow.ShowDialog();
        }
示例#4
0
        public void ShowEditDialog()
        {
            var editChartWindow = new EditChartWindow(this);

            editChartWindow.ShowDialog();
        }