void UpdateStateDelegate(uint aCallbackEventCode, uint aSessionDescriptor)
        {
            SessionCallbackEventCode k = (SessionCallbackEventCode)aCallbackEventCode;

            switch (k)
            {
            case SessionCallbackEventCode.Unknown:
                break;

            case SessionCallbackEventCode.Error:
                break;

            case SessionCallbackEventCode.Status_Error:
                break;

            case SessionCallbackEventCode.Execution_Error:
                break;

            case SessionCallbackEventCode.ItIsReadyToStart:
                break;

            case SessionCallbackEventCode.ItIsStarted:
                break;

            case SessionCallbackEventCode.ItIsPaused:
                break;

            case SessionCallbackEventCode.ItIsStopped:
                break;

            case SessionCallbackEventCode.ItIsEnded:
                break;

            case SessionCallbackEventCode.ItIsClosed:
                break;

            case SessionCallbackEventCode.VideoCaptureDeviceRemoved:
            {
                System.Windows.Application.Current?.Dispatcher.Invoke(
                    System.Windows.Threading.DispatcherPriority.Normal,
                    new Action(() => {
                        Stop();

                        if (RemoveDeviceEvent != null)
                        {
                            RemoveDeviceEvent();
                        }
                    }));
            }
            break;

            default:
                break;
            }
        }
        void UpdateStateDelegate(uint aCallbackEventCode, uint aSessionDescriptor)
        {
            SessionCallbackEventCode k = (SessionCallbackEventCode)aCallbackEventCode;

            switch (k)
            {
            case SessionCallbackEventCode.Unknown:
                break;

            case SessionCallbackEventCode.Error:
                break;

            case SessionCallbackEventCode.Status_Error:
                break;

            case SessionCallbackEventCode.Execution_Error:
                break;

            case SessionCallbackEventCode.ItIsReadyToStart:
                break;

            case SessionCallbackEventCode.ItIsStarted:
                break;

            case SessionCallbackEventCode.ItIsPaused:
                break;

            case SessionCallbackEventCode.ItIsStopped:
                break;

            case SessionCallbackEventCode.ItIsEnded:
                break;

            case SessionCallbackEventCode.ItIsClosed:
                break;

            case SessionCallbackEventCode.VideoCaptureDeviceRemoved:
            {
                //Dispatcher.Invoke(
                //DispatcherPriority.Normal,
                //new Action(() => mLaunchButton_Click(null, null)));
            }
            break;

            default:
                break;
            }
        }
Exemplo n.º 3
0
        void HandleSessionStateChanged(uint aCallbackEventCode, uint aSessionDescriptor)
        {
            SessionCallbackEventCode k = (SessionCallbackEventCode)aCallbackEventCode;

            switch (k)
            {
            case SessionCallbackEventCode.Unknown:
                break;

            case SessionCallbackEventCode.Error:
                break;

            case SessionCallbackEventCode.Status_Error:
                break;

            case SessionCallbackEventCode.Execution_Error:
                break;

            case SessionCallbackEventCode.ItIsReadyToStart:
                break;

            case SessionCallbackEventCode.ItIsStarted:
                break;

            case SessionCallbackEventCode.ItIsPaused:
                break;

            case SessionCallbackEventCode.ItIsStopped:
                break;

            case SessionCallbackEventCode.ItIsEnded:
                break;

            case SessionCallbackEventCode.ItIsClosed:
                break;

            case SessionCallbackEventCode.VideoCaptureDeviceRemoved:
            {
            }
            break;

            default:
                break;
            }
        }