private void checkBoxCharts_CheckedChanged(object sender, EventArgs e)
 {
     if (checkBoxCharts.Checked)
     {
         chartPoint = new FormChart(30, -500, 500, "Point 1", ChartUpdatingMode.Timed, 500);
         chartPoint.AddCurve("X Axis");
         chartPoint.AddCurve("Y Axis");
         chartPoint.AddCurve("Z Axis");
         chartPoint.Show();
     }
     else
     {
         chartPoint.Close();
     }
 }
Esempio n. 2
0
        public void OnEvent(object element, object parent)
        {
            if (!(element is IFeatureLayer) || _doc == null || _doc.FocusMap == null)
            {
                return;
            }

            if (_doc.Application is IGUIApplication)
            {
                FormChartWizard dlg = new FormChartWizard(_doc.FocusMap.Display, (IFeatureLayer)element);
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    FormChart chart = new FormChart(dlg.ChartTitle, dlg.Series);
                    chart.DisplayMode = dlg.DisplayMode;
                    chart.ChartType   = dlg.ChartType;

                    ((IGUIApplication)_doc.Application).AddDockableWindow(chart, String.Empty);
                }
            }
        }