Exemple #1
0
 public override void OnEvent(object MapEvent)
 {
     if (MapEvent is FormChart)
     {
         gvChart.gvChartType oldChartType = ((FormChart)MapEvent).ChartType;
         try
         {
             ((FormChart)MapEvent).ChartType = this.ChartType;
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
             ((FormChart)MapEvent).ChartType = oldChartType;
         }
     }
 }
Exemple #2
0
        private void lstChartTypes_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                gvChart.gvChartType chartType = (gvChart.gvChartType)lstChartTypes.SelectedItem;
                panelDisplayMode.Visible = (chartType.DisplayMode == gvChart.DisplayMode.Mixed);

                _gvChart.ChartType = chartType;
                if (panelDisplayMode.Visible == true)
                {
                    _gvChart.ChartDisplayMode = (gvChart.DisplayMode)cmbDisplayMode.SelectedIndex;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemple #3
0
                public override Task <bool> OnEvent(object MapEvent)
                {
                    if (MapEvent is FormChart)
                    {
                        gvChart.gvChartType oldChartType = ((FormChart)MapEvent).ChartType;
                        try
                        {
                            ((FormChart)MapEvent).ChartType = this.ChartType;
                        }
                        catch (Exception ex)
                        {
                            MessageBox.Show(ex.Message);
                            ((FormChart)MapEvent).ChartType = oldChartType;
                        }
                    }

                    return(Task.FromResult(true));
                }
Exemple #4
0
 public ChartTypeTool(gvChart.gvChartType chartType)
     : base(chartType.Name)
 {
     this.ChartType = chartType;
 }
Exemple #5
0
 public ChartTypeMenu(gvChart.gvChartType chartType)
     : base("Chart Type")
 {
     _chartType = chartType;
 }