예제 #1
0
        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);
        }