Ejemplo n.º 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;
         }
     }
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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));
                }
Ejemplo n.º 4
0
 public ChartTypeTool(gvChart.gvChartType chartType)
     : base(chartType.Name)
 {
     this.ChartType = chartType;
 }
Ejemplo n.º 5
0
 public ChartTypeMenu(gvChart.gvChartType chartType)
     : base("Chart Type")
 {
     _chartType = chartType;
 }