private void AddChart() { ChartBox subChart = chartBox.AddSubChart(); subChart.UID = uid; //uid = subChart.UID; Chart volume = new Chart(chartBox.Charts[0].Values); volume.Type = GraphicsProvider.Chart.ChartType.Volume; volume.VolumeColor = color; subChart.Charts.Add(volume); subChart.BaseChartIndex = 0; subChart.CalculateAll(); subChart.DrawAll(); subChart.Image = subChart.PureImage; subChart.DrawPrice(); isDrawn = true; }
// // Implementation // private void chartBox_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { chartBox.AddSubChart(); }