Exemplo n.º 1
0
        private void Chk_connectCam_Checked(object sender, RoutedEventArgs e)
        {
            if (!IsLoaded)
            {
                return;
            }

            switch (GV._camSelected)
            {
            case camType.WebCam:
                ConnectRoutine.connectWebCam(); break;

            case camType.PointGreyCam:
                ConnectRoutine.connectPointGreyCam();
                break;
            }

            Panel_liveViewOptions.IsEnabled = true;
        }
Exemplo n.º 2
0
        private void Radio_PTcam_Checked(object sender, RoutedEventArgs e)
        {
            if (!Radio_PTcam.IsLoaded)
            {
                return;
            }

            PreviewRoutine.StopPreview();
            GV._camSelected = camType.PointGreyCam;
            if (GV._camConnectAtStartup)
            {
                ConnectRoutine.connectPointGreyCam();
            }
            else
            {
                Chk_connectCam.IsChecked = false;
            }

            saveProgramSetting();
        }