Exemple #1
0
        static void Main(string[] args)
        {
            cameraFinder = new CameraFinder();
            cameraFinder.CameraFoundEvent   += CameraFinder_CameraFoundEvent;
            cameraFinder.CameraUpgradeEvent += CameraFinder_CameraUpgradeEvent;
            cameraFinder.StartSearching();

            Console.WriteLine("Press any key to exit");
            Console.ReadKey();
            cameraFinder.StopSearching();
            cameraFinder.Cameras.ForEach(c => c.Cancel());
        }