Exemplo n.º 1
0
        private void CloseAllComponents()
        {
            ExerciseVideo.Stop();

            //clearing the view
            KinectShilloute.Source = null;
            KinectSkeleton.Source  = null;

            Dispose();
        }
Exemplo n.º 2
0
        private void OpenNotTrackablePopUp()
        {
            ExerciseVideo.Stop();

            noTrackingPopUp = new NoTrackingPopUp();
            int width  = (int)(ActualWidth * 0.45);
            int height = (int)(ActualHeight * 0.65);

            noTrackingPopUp.SetSize(height, width);
            noTrackingPopUp.ExerciseView = this;

            if (!ExerciseWindow.Children.Contains(noTrackingPopUp))
            {
                ExerciseWindow.Children.Add(noTrackingPopUp);
                noTrackingPopUp.StartTimer();
            }
        }