private void InitializeEnv() { CameraCBox.Items.Clear(); CameraCBox.SelectedIndex = -1; System.Array arCameraList = (System.Array)CameraCtrl.GetCameraList(); for (int i = 0; i < arCameraList.Length; i++) { CameraCBox.Items.Add(arCameraList.GetValue(i)); CameraCBox.SelectedIndex = i; } }