public static string GetNextCameraName() { int index = 1; string cameraName = String.Empty; while (true) { cameraName = $"customcamera{index.ToString()}"; if (!CameraUtilities.CameraExists(cameraName)) { break; } index++; } return(cameraName); }
public static string GetNextCameraName() { int index = 1; string cameraName = String.Empty; while (true) { cameraName = $"customcamera{index.ToString()}"; if (!CameraUtilities.CameraExists(cameraName)) { break; } index++; } return(cameraName); }