void loadGhosts()
        {
            ghostDancing = new Ghost();
            ghostHandMovement = new Ghost();
            ghostHighVolume = new Ghost();
            ghostHmmm = new Ghost();
            ghostLowVolume = new Ghost();
            ghostModuleVolume = new Ghost();
            ghostPosture = new Ghost();
            ghostStartSpeaking = new Ghost();
            ghostStopSpeaking = new Ghost();

            ghostPostureM = new GhostMoving();
            ghostHandMovementM = new GhostMoving();
            ghostHmmmM = new GhostMoving();
            ghostHighVolumeM = new GhostMoving();
            ghostDancingM = new GhostMoving();
            ghostLowVolumeM = new GhostMoving();
            ghostModuleVolumeM = new GhostMoving();
            ghostStopSpeakingM = new GhostMoving();
            ghostStartSpeakingM = new GhostMoving();

          

            ghostPostureTF = new FreestyleTextFeedback();
            ghostHandMovementTF = new FreestyleTextFeedback();
            ghostHmmmTF = new FreestyleTextFeedback();
            ghostHighVolumeTF = new FreestyleTextFeedback();
            ghostDancingTF = new FreestyleTextFeedback();
            ghostLowVolumeTF = new FreestyleTextFeedback();
            ghostModuleVolumeTF = new FreestyleTextFeedback();
            ghostStopSpeakingTF = new FreestyleTextFeedback();
            ghostStartSpeakingTF = new FreestyleTextFeedback();

            ghostPostureOT = new FreestyleOldText();
            ghostHandMovementOT = new FreestyleOldText();
            ghostHmmmOT = new FreestyleOldText();
            ghostHighVolumeOT = new FreestyleOldText();
            ghostDancingOT = new FreestyleOldText();
            ghostLowVolumeOT = new FreestyleOldText();
            ghostModuleVolumeOT = new FreestyleOldText();
            ghostStopSpeakingOT = new FreestyleOldText();
            ghostStartSpeakingOT = new FreestyleOldText();

            myCanvas.Children.Add(ghostDancing);
            myCanvas.Children.Add(ghostStopSpeaking);
            myCanvas.Children.Add(ghostHandMovement);
            myCanvas.Children.Add(ghostHighVolume);
            myCanvas.Children.Add(ghostHmmm);
            myCanvas.Children.Add(ghostLowVolume);
            myCanvas.Children.Add(ghostModuleVolume);
            myCanvas.Children.Add(ghostPosture);
            myCanvas.Children.Add(ghostStartSpeaking);

            myCanvas.Children.Add(ghostDancingM);
            myCanvas.Children.Add(ghostStopSpeakingM);
            myCanvas.Children.Add(ghostHandMovementM);
            myCanvas.Children.Add(ghostHighVolumeM);
            myCanvas.Children.Add(ghostHmmmM);
            myCanvas.Children.Add(ghostLowVolumeM);
            myCanvas.Children.Add(ghostModuleVolumeM);
            myCanvas.Children.Add(ghostPostureM);
            myCanvas.Children.Add(ghostStartSpeakingM);

            myCanvas.Children.Add(ghostDancingTF);
            myCanvas.Children.Add(ghostStopSpeakingTF);
            myCanvas.Children.Add(ghostHandMovementTF);
            myCanvas.Children.Add(ghostHighVolumeTF);
            myCanvas.Children.Add(ghostHmmmTF);
            myCanvas.Children.Add(ghostLowVolumeTF);
            myCanvas.Children.Add(ghostModuleVolumeTF);
            myCanvas.Children.Add(ghostPostureTF);
            myCanvas.Children.Add(ghostStartSpeakingTF);

            myCanvas.Children.Add(ghostDancingOT);
            myCanvas.Children.Add(ghostStopSpeakingOT);
            myCanvas.Children.Add(ghostHandMovementOT);
            myCanvas.Children.Add(ghostHighVolumeOT);
            myCanvas.Children.Add(ghostHmmmOT);
            myCanvas.Children.Add(ghostLowVolumeOT);
            myCanvas.Children.Add(ghostModuleVolumeOT);
            myCanvas.Children.Add(ghostPostureOT);
            myCanvas.Children.Add(ghostStartSpeakingOT);

            Canvas.SetLeft(ghostDancingTF, 30);
            Canvas.SetLeft(ghostStopSpeakingTF, 30);
            Canvas.SetLeft(ghostHandMovementTF, 30);
            Canvas.SetLeft(ghostHighVolumeTF, 30);
            Canvas.SetLeft(ghostHmmmTF, 30);
            Canvas.SetLeft(ghostLowVolumeTF, 30);
            Canvas.SetLeft(ghostModuleVolumeTF, 30);
            Canvas.SetLeft(ghostPostureTF, 30);
            Canvas.SetLeft(ghostStartSpeakingTF, 30);

            Canvas.SetLeft(ghostDancingOT, 30);
            Canvas.SetLeft(ghostStopSpeakingOT, 30);
            Canvas.SetLeft(ghostHandMovementOT, 30);
            Canvas.SetLeft(ghostHighVolumeOT, 30);
            Canvas.SetLeft(ghostHmmmOT, 30);
            Canvas.SetLeft(ghostLowVolumeOT, 30);
            Canvas.SetLeft(ghostModuleVolumeOT, 30);
            Canvas.SetLeft(ghostPostureOT, 30);
            Canvas.SetLeft(ghostStartSpeakingOT, 30);

            Canvas.SetTop(ghostDancingTF, 354);
            Canvas.SetTop(ghostStopSpeakingTF, 354);
            Canvas.SetTop(ghostHandMovementTF, 354);
            Canvas.SetTop(ghostHighVolumeTF, 354);
            Canvas.SetTop(ghostHmmmTF, 354);
            Canvas.SetTop(ghostLowVolumeTF, 354);
            Canvas.SetTop(ghostModuleVolumeTF, 354);
            Canvas.SetTop(ghostPostureTF, 354);
            Canvas.SetTop(ghostStartSpeakingTF, 354);

            Canvas.SetTop(ghostDancingOT, 284);
            Canvas.SetTop(ghostStopSpeakingOT, 284);
            Canvas.SetTop(ghostHandMovementOT, 284);
            Canvas.SetTop(ghostHighVolumeOT, 284);
            Canvas.SetTop(ghostHmmmOT, 284);
            Canvas.SetTop(ghostLowVolumeOT, 284);
            Canvas.SetTop(ghostModuleVolumeOT, 284);
            Canvas.SetTop(ghostPostureOT, 284);
            Canvas.SetTop(ghostStartSpeakingOT, 284);

            Canvas.SetTop(ghostDancing, 80);
            Canvas.SetTop(ghostStopSpeaking, 80);
            Canvas.SetTop(ghostHandMovement, 80);
            Canvas.SetTop(ghostHighVolume, 80);
            Canvas.SetTop(ghostHmmm, 80);
            Canvas.SetTop(ghostLowVolume, 80);
            Canvas.SetTop(ghostModuleVolume, 80);
            Canvas.SetTop(ghostPosture, 80);
            Canvas.SetTop(ghostStartSpeaking, 80);

            ghostPostureM.Height = 650;
            ghostHandMovementM.Height = 650;
            ghostHmmmM.Height = 650;
            ghostHighVolumeM.Height = 650;
            ghostDancingM.Height = 650;
            ghostLowVolumeM.Height = 650;
            ghostModuleVolumeM.Height = 650;
            ghostStopSpeakingM.Height = 650;
            ghostStartSpeakingM.Height = 650;

            setGhostInvisible();
            setGhostMovingInvisible();
            setFeedbackTextInvisible();
            setOldTextInvisible();

            var uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_outline.png", UriKind.Relative);
            ghostPosture.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_hands.png", UriKind.Relative);
            ghostDancing.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_pause.png", UriKind.Relative);
            ghostStopSpeaking.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_hands.png", UriKind.Relative);
            ghostHandMovement.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_lowerVolume.png", UriKind.Relative);
            ghostHighVolume.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_outline.png", UriKind.Relative);
            ghostHmmm.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_raiseVolume.png", UriKind.Relative);
            ghostLowVolume.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_moduleVolume.png", UriKind.Relative);
            ghostModuleVolume.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_startSpeaking.png", UriKind.Relative);
            ghostStartSpeaking.ghostImg.Source = new BitmapImage(uriSource);

            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_outline.png", UriKind.Relative);
            ghostPostureM.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_hands.png", UriKind.Relative);
            ghostDancingM.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_pause.png", UriKind.Relative);
            ghostStopSpeakingM.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_hands.png", UriKind.Relative);
            ghostHandMovementM.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_lowerVolume.png", UriKind.Relative);
            ghostHighVolumeM.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_outline.png", UriKind.Relative);
            ghostHmmmM.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_raiseVolume.png", UriKind.Relative);
            ghostLowVolumeM.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_moduleVolume.png", UriKind.Relative);
            ghostModuleVolumeM.ghostImg.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_startSpeaking.png", UriKind.Relative);
            ghostStartSpeakingM.ghostImg.Source = new BitmapImage(uriSource);

            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_outline.png", UriKind.Relative);
            ghostPostureOT.FeedbackIMG.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_hands.png", UriKind.Relative);
            ghostDancingOT.FeedbackIMG.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_pause.png", UriKind.Relative);
            ghostStopSpeakingOT.FeedbackIMG.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_hands.png", UriKind.Relative);
            ghostHandMovementOT.FeedbackIMG.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_lowerVolume.png", UriKind.Relative);
            ghostHighVolumeOT.FeedbackIMG.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_outline.png", UriKind.Relative);
            ghostHmmmOT.FeedbackIMG.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_raiseVolume.png", UriKind.Relative);
            ghostLowVolumeOT.FeedbackIMG.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_moduleVolume.png", UriKind.Relative);
            ghostModuleVolumeOT.FeedbackIMG.Source = new BitmapImage(uriSource);
            uriSource = new Uri(@"/PresentationTrainer;component/Images/ghost_startSpeaking.png", UriKind.Relative);
            ghostStartSpeakingOT.FeedbackIMG.Source = new BitmapImage(uriSource);
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.myCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 2:
     this.coinSound = ((System.Windows.Controls.MediaElement)(target));
     return;
     case 3:
     this.backgroundImg = ((System.Windows.Controls.Image)(target));
     return;
     case 4:
     this.CompositeImage = ((System.Windows.Controls.Canvas)(target));
     return;
     case 5:
     this.myBody = ((PresentationTrainer.BodyMirror)(target));
     return;
     case 6:
     this.myAudio = ((PresentationTrainer.AudioMirror)(target));
     return;
     case 7:
     this.mySkeleton = ((PresentationTrainer.SkeletonTraker)(target));
     return;
     case 8:
     this.ghost = ((PresentationTrainer.Ghost)(target));
     return;
     case 9:
     this.ghostMoving1 = ((System.Windows.Controls.Image)(target));
     return;
     case 10:
     this.ghostMoving = ((PresentationTrainer.GhostMoving)(target));
     return;
     case 11:
     this.countdown = ((PresentationTrainer.CountDown)(target));
     return;
     case 12:
     this.countdownPause = ((PresentationTrainer.CountDownPause)(target));
     return;
     case 13:
     this.textFeedback = ((PresentationTrainer.FreestyleTextFeedback)(target));
     return;
     case 14:
     this.oldTextFeedback = ((PresentationTrainer.FreestyleOldText)(target));
     return;
     case 15:
     this.logStopButton = ((System.Windows.Controls.Button)(target));
     
     #line 33 "..\..\FreestyleMode.xaml"
     this.logStopButton.Click += new System.Windows.RoutedEventHandler(this.logStopButton_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.reportStopButton = ((System.Windows.Controls.Button)(target));
     
     #line 34 "..\..\FreestyleMode.xaml"
     this.reportStopButton.Click += new System.Windows.RoutedEventHandler(this.reportStopButton_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.stopButton = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\FreestyleMode.xaml"
     this.stopButton.Click += new System.Windows.RoutedEventHandler(this.stopButton_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.debugLabel = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
        public void loadGhosts()
        {
            ghost = new Ghost();
            ghostM = new GhostMoving();
            ghostTF = new FreestyleTextFeedback();
            ghostOT = new FreestyleOldText();
            myCanvas.Children.Add(ghost);
            myCanvas.Children.Add(ghostM);
            myCanvas.Children.Add(ghostTF);
            myCanvas.Children.Add(ghostOT);

            Canvas.SetLeft(ghostTF, 830);
            Canvas.SetLeft(ghostOT, 830);
            Canvas.SetLeft(ghost, 730);
            Canvas.SetTop(ghostTF, 354);
            Canvas.SetTop(ghostOT, 284);
            Canvas.SetTop(ghost, 80);

            ghost.Height = 650;
            ghost.ghostImg.Height = 450;
            ghost.CurrentFeedback.Margin = new Thickness(80, 403, 30, 191);

            setGhostInvisible();
            setGhostMovingInvisible();
            setFeedbackTextInvisible();
            setOldTextInvisible();

        }