public void Init()
        {
            //Load test exercise from XML
            XmlSerializer serializer = new XmlSerializer(typeof(Exercise));
            StreamReader reader = new StreamReader(Directory + "EXELAE.xml");
            // deserialize the xml and create an Exercise
            Exercise = (Exercise)serializer.Deserialize(reader);

            testRepetition = new Repetition(Exercise);
        }
 public ExerciseGameComponent(Game game,Exercise exercise)
     : base(game)
 {
     ExerciseStarted = false;
     CountdownStarted = false;
     RepetitionComplete = false;
     RepetitionStarted = false;
     Repetitions = 0;
     _exercise = exercise;
     Name = exercise.Name;
     repetition = new Repetition(exercise);
     RepetitionToFileId = new List<string>();
 }