Exemplo n.º 1
0
        public void ClosedSummaryPopUp(Boolean goToQuestions)
        {
            ExerciseWindow.Children.Remove(summary);
            summary = null;

            CurrentTraining.ClearTrainingData();

            //if the user decided to answer the questions
            if (goToQuestions)
            {
                OpenQuestionnairePopUp();
            }
            else
            {
                CloseExeciseView();
                //CurrentTraining.ClearTrainingData();
                //MainWindow.OpenTreatmentWindow(this.CurrentPatient);
            }
                
        }
Exemplo n.º 2
0
        private void OpenSummaryPopUp()
        {
            //ExerciseVideo.Visibility = Visibility.Hidden;
            //Background = new SolidColorBrush(Color.FromArgb(0x80, 0xc6, 0x83, 0));

            summary = new SummaryPopUp();
            int width = (int)(ActualWidth / 2.5);
            int height = (int)(ActualHeight * 0.75);

            summary.SetSize(height, width);

            summary.CurrentTraining = CurrentTraining;
            summary.CurrentPatient = CurrentPatient;
            summary.ExerciseView = this;
            summary.UpdateScore();

            TrackingLostTimer.Stop();

            ExerciseWindow.Children.Add(summary);
        }