public void Plot <T>(DataCube <T> source, MySeriesChartType chartType)
 {
     if (InvokeRequired)
     {
         Invoke(new MethodInvoker(delegate
         {
             this.winChart_timeseries.Plot <T>(source, EnumHelper.FromString <SeriesChartType>(chartType.ToString()));
             this.winChart_timeseries.Refresh();
         }));
     }
     else
     {
         this.winChart_timeseries.Plot <T>(source, EnumHelper.FromString <SeriesChartType>(chartType.ToString()));
         this.winChart_timeseries.Refresh();
     }
 }
 public void Plot <T>(T[] xx, T[] yy, string seriesName = "", MySeriesChartType chartType = MySeriesChartType.FastLine)
 {
     if (InvokeRequired)
     {
         Invoke(new MethodInvoker(delegate
         {
             this.winChart_timeseries.Plot <T>(xx, yy, seriesName,
                                               EnumHelper.FromString <SeriesChartType>(chartType.ToString()));
             this.winChart_timeseries.Refresh();
         }));
     }
     else
     {
         this.winChart_timeseries.Plot <T>(xx, yy, seriesName,
                                           EnumHelper.FromString <SeriesChartType>(chartType.ToString()));
         this.winChart_timeseries.Refresh();
     }
 }