예제 #1
0
        public SourceUSBCam()
        {
            InitializeComponent();
            var camList = FrameSource.GetAllConnectedCameras();

            cameraList.ItemsSource = camList;
            if (camList.Count > 0)
            {
                var lastOpen = Datastore.GeneralGetValue("usb_cam_last");
                cameraList.SelectedItem = camList.FirstOrDefault(i => i.Name.Equals(lastOpen)) ?? camList[0];
            }
        }