private void OnFiredAlertDelegate(PXCMTouchlessController.AlertData data)
        {
            Dispatcher.BeginInvoke((Action)(() =>
            {
                switch (data.type)
                {
                case PXCMTouchlessController.AlertData.AlertType.Alert_TooClose:
                    Console.WriteLine("Main est trop proche.");
                    break;

                case PXCMTouchlessController.AlertData.AlertType.Alert_TooFar:
                    Console.WriteLine("Main est trop éloignée.");
                    break;

                case PXCMTouchlessController.AlertData.AlertType.Alert_NoAlerts:
                    Console.WriteLine("Bien positionnée.");
                    break;
                }
            }));
        }
        private void OnFiredAlertDelegate(PXCMTouchlessController.AlertData data)
        {
            Dispatcher.BeginInvoke((Action)(() =>
            {
                switch (data.type)
                {
                case PXCMTouchlessController.AlertData.AlertType.Alert_TooClose:
                    TB_HandDetectionInfo.Text = "Main est trop proche.";
                    break;

                case PXCMTouchlessController.AlertData.AlertType.Alert_TooFar:
                    TB_HandDetectionInfo.Text = "Main est trop éloignée.";
                    break;

                case PXCMTouchlessController.AlertData.AlertType.Alert_NoAlerts:
                    TB_HandDetectionInfo.Text = "Bien positionnée.";
                    break;
                }
            }));
        }
Exemple #3
0
        private void OnFiredAlertDelegate(PXCMTouchlessController.AlertData data)
        {
            Dispatcher.BeginInvoke((Action)(() =>
            {
                switch (data.type)
                {
                case PXCMTouchlessController.AlertData.AlertType.Alert_TooClose:
                    alertsDisplay.ShowVisualNotification(RealSenseNavigator.AlertsDisplay.NotificationTypes.TooClose);
                    break;

                case PXCMTouchlessController.AlertData.AlertType.Alert_TooFar:
                    alertsDisplay.ShowVisualNotification(RealSenseNavigator.AlertsDisplay.NotificationTypes.TooFar);
                    break;

                case PXCMTouchlessController.AlertData.AlertType.Alert_NoAlerts:
                    alertsDisplay.ShowVisualNotification(RealSenseNavigator.AlertsDisplay.NotificationTypes.NoAlerts);
                    break;
                }
            }));
        }