private void comboBoxGageType_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBoxGageType.SelectedIndex == 0) { this.gageTpye = MyChartControl.WaveChart.GageTpye.GageA; } if (this.comboBoxGageType.SelectedIndex == 1) { this.gageTpye = MyChartControl.WaveChart.GageTpye.GageB; } }
public WaveFormTest() { InitializeComponent(); waveChart.ChartXSizeZoomChange(300); waveChart.ChartYSizeZoomChange(256, 100); waveChart.SetAxisValue(CalcuAxielValue()); drawData = new double[300]; random = new Random(); stopwatch = new Stopwatch(); axielValueIndex = 300; comboBoxGageType.SelectedIndex = 0; gageTpye = MyChartControl.WaveChart.GageTpye.GageA; gageA = new GageInfo { length = 5, point = new Point(20, 20) }; gageB = new GageInfo { length = 5, point = new Point(50, 50) }; isGageVisible = false; }