private void InitParam() { if (_station.ToString().IndexOf("CalibStation") >= 0) { for (int i = 0; i < ((CalibStation)_station).Num_Camera; i++) { cbb_Cam.Items.Add("Camera_" + i); } timer1.Enabled = true; if (((CalibStation)_station).SelectedIndex > -1 && ((CalibStation)_station).SelectedIndex < ((CalibStation)_station).Num_Camera) { cbb_Cam.SelectedIndex = ((CalibStation)_station).SelectedIndex; } } else { for (int i = 0; i < ((AutoMappingStation)_station).Num_Camera; i++) { cbb_Cam.Items.Add("Camera_" + i); } timer1.Enabled = true; if (((AutoMappingStation)_station).SelectedIndex > -1 && ((AutoMappingStation)_station).SelectedIndex < ((AutoMappingStation)_station).Num_Camera) { cbb_Cam.SelectedIndex = ((AutoMappingStation)_station).SelectedIndex; } } }