/// <summary>
        /// 
        /// </summary>
        private void GetVideo(Slide slide)
        {
            if (p.getCurrentSlide().hasVideo())
            {
                Debug.WriteLine("HAS VIDEO");
                Canvas.SetTop(playButton, (VideoCanvas.ActualHeight - playButton.ActualHeight) / 2);
                Canvas.SetLeft(playButton, (VideoCanvas.ActualWidth - playButton.ActualWidth) / 2);
                Canvas.SetTop(playButtonOverlay, Canvas.GetTop(playButton) + 30);
                Canvas.SetLeft(playButtonOverlay, Canvas.GetLeft(playButton) + 15);

                //Debug.WriteLine("HEIGHT: " + VideoCanvas.ActualHeight);
                myVideoX.Source = new Uri(slide.getVideoPath());
                myVideoX.Opacity = 1;
                playButton.Opacity = 1;
            }
            else if (!p.getCurrentSlide().hasVideo())
            {
                Debug.WriteLine("NO VIDEO");
                if (videoPlaying)
                {
                    myVideoX.Pause();
                    videoPlaying = false;
                }
                myVideoX.Opacity = 0;
                playButton.Opacity = 0;
            }
        }
        private void InitializePresentation()
        {
            p = new Presentation();
            //this.CreateGraphics();
            string startupPath = Environment.CurrentDirectory;
            Debug.WriteLine(startupPath);
            Slide zero = new Slide(startupPath+"\\Pictures\\Slide0.jpg", "");
            Slide one = new Slide(startupPath + "\\Pictures\\blank.jpg", startupPath + "\\Pictures\\Wildlife.wmv");
            Slide two = new Slide(startupPath+"\\Pictures\\Slide3.jpg", "");
            Slide three = new Slide(startupPath+"\\Pictures\\Slide4.jpg", "");
            Slide four = new Slide(startupPath+"\\Pictures\\Slide5.jpg", "");
            Slide five = new Slide(startupPath+"\\Pictures\\Slide6.jpg", "");
            Slide six = new Slide(startupPath+"\\Pictures\\Slide7.jpg", "");
            Slide seven = new Slide(startupPath+"\\Pictures\\Slide1.jpg", "");
            Slide eight = new Slide(startupPath+"\\Pictures\\Slide8.jpg", "");
            Slide nine = new Slide(startupPath+"\\Pictures\\Slide9.jpg", "");
            canvas = new Canvas();
            Canvas.SetLeft(canvas, 0);
            Canvas.SetTop(canvas, 0);
            this.PlayButton = new BitmapImage(new Uri(startupPath + "\\Pictures\\play_button.png"));
            blankImage = new BitmapImage(new Uri(startupPath + "\\Pictures\\Blank.jpg"));

            List<Slide> group0 = new List<Slide>()
            {
                seven
            };
            List<Slide> group1 = new List<Slide>()
            {
                //two,
                three,
                four,
                five,
            };
            List<Slide> group2 = new List<Slide>()
            {
                three,
                five,
                six,
            };
            List<Slide> group3 = new List<Slide>()
            {
                three,
                five,
                seven,
            };
            List<Slide> group4 = new List<Slide>()
            {
                three,
                four,
                six,
                seven,
            };
            List<Slide> group5 = new List<Slide>()
            {
                //two,
                three,
                four,
            };

            zero.addAssociatedSlides(group0);
            one.addAssociatedSlides(group1);
            two.addAssociatedSlides(group2);
            three.addAssociatedSlides(group5);
            four.addAssociatedSlides(group2);
            five.addAssociatedSlides(group4);
            six.addAssociatedSlides(group3);
            seven.addAssociatedSlides(group5);
            eight.addAssociatedSlides(group3);
            nine.addAssociatedSlides(group0);

            p.addSlide(zero);
            p.addSlide(one);
            p.addSlide(two);
            p.addSlide(three);
            p.addSlide(four);
            p.addSlide(five);
            p.addSlide(six);
            p.addSlide(seven);
            p.addSlide(eight);
            p.addSlide(nine);
        }
 public void setParent(Slide s)
 {
     parentSlide = s;
 }
 public void setAssociation(Slide s)
 {
     associatedSlides.Add(s);
 }
 public void removeSlide(Slide s)
 {
     associatedSlides.Remove(s);
 }
 public void addSlide(Slide s)
 {
     associatedSlides.Add(s);
 }
 public void addSlide(Slide s)
 {
     slides.Add(s);
 }