Esempio n. 1
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);
        }