Esempio n. 1
0
        static void Main()
        {
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new MainForm());
            var camera = CameraService.GetActiveCamera();

            // shows in the output window
            if (camera != null)
            {
                Console.WriteLine($"{camera.Name} is on.");
            }
            else
            {
                Console.WriteLine($"No cameras are on.");
            }
        }