private void Button_Play(object sender, RoutedEventArgs e)
        {
            // View Expense Report
            KinectWindow kw = new KinectWindow();

            this.NavigationService.Navigate(kw);
        }
Exemple #2
0
        private void warmUpWorkout(object sender, RoutedEventArgs e)
        {
            stopProcesses();
            SetFile(warmUpImg);
            KinectWindow kw = new KinectWindow();

            kw.Show();
            closeWindow();
        }
Exemple #3
0
        //Copy the exercise file chosen by user to the "chosenExercise.txt" file
        //and navigate to Kinect Exercise Window
        private void newBtn_Click(object sender, RoutedEventArgs e)
        {
            String exercise = (sender as Button).Content.ToString();

            try
            {
                String path = System.AppDomain.CurrentDomain.BaseDirectory;
                path = System.IO.Directory.GetParent(path).FullName;
                path = System.IO.Directory.GetParent(path).FullName;
                path = System.IO.Directory.GetParent(path).FullName;
                path = System.IO.Directory.GetParent(path).FullName;

                File.Delete(path + "\\Recordings\\chosenExercise.txt");
                System.IO.File.Copy(exercise, path + "\\Recordings\\chosenExercise.txt");
            }
            catch (IOException)
            {
                MessageBox.Show("Error in loading exercise");
            }
            KinectWindow kw = new KinectWindow();

            this.NavigationService.Navigate(kw);
        }