Exemplo n.º 1
0
        private void TapButton_OnMouseClick(object sender, RoutedEventArgs e)
        {
            //Show a pop up that fades out
            var popUp = new TimedPopUp("Touchless Controller", "Clicked :)", new TimeSpan(0, 0, 2));

            popUp.Show();
        }
Exemplo n.º 2
0
        private void CheckButtonClicked(PXCMPoint3DF32 pos)
        {
            Point point = new Point();

            point.X = Math.Max(Math.Min(0.9F, pos.x), 0.1F);
            point.Y = Math.Max(Math.Min(0.9F, pos.y), 0.1F);

            //Check if click is on button
            //  if (!HelperMethods.PointOnButton(point, TapButton, VisualFeedbackGrid))
            //      return;

            var p = new TimedPopUp("", "Clicked :)", new TimeSpan(0, 0, 2));

            p.Show();
        }
Exemplo n.º 3
0
        private void OnWave()
        {
            digitCanvas.Children.Clear();
            var popUp = new TimedPopUp("Touchless Controller", "Nice Wave!", new TimeSpan(0, 0, 2));

            popUp.Show();

            for (int i = 0; i < 10; i++)
            {
                _bar[i].PrevVal = _bar[i].Value;
                _bar[i].Value   = 0;
                _bar[i].AccVal  = String.Format("{0:0.0}%", 0);
            }
            this.DataContext = new RecordCollection(_bar);
        }
Exemplo n.º 4
0
        private void CheckCanvasPinched(PXCMPoint3DF32 pos)
        {
            Point point = new Point();

            point.X = Math.Max(Math.Min(0.9F, pos.x), 0.1F);
            point.Y = Math.Max(Math.Min(0.9F, pos.y), 0.1F);

            //Check if click is on button
            if (!HelperMethods.PointOnCanvas(point, digitCanvas, VisualFeedbackGrid))
            {
                return;
            }

            var p = new TimedPopUp("", "Pinchedd! :)", new TimeSpan(0, 0, 2));

            p.Show();
        }