Beispiel #1
0
 public static void Main()
 {
     SlideshowManager slideshow = new SlideshowManager(@"C:\Users\ico\Desktop\Test.pptx");
     slideshow.NextSlide();
     slideshow.NextSlide();
     slideshow.ClosePresentation();
 }
Beispiel #2
0
        public static void Main()
        {
            SlideshowManager slideshow = new SlideshowManager(@"C:\Users\ico\Desktop\Test.pptx");

            slideshow.NextSlide();
            slideshow.NextSlide();
            slideshow.ClosePresentation();
        }
Beispiel #3
0
 public override void Trigger(List <KeyValuePair <string, string> > semanticsToDict)
 {
     if (semanticsToDict[0].Key == "next slide")
     {
         try
         {
             if (null == slideshow)
             {
                 //TODO: exception handling. Discuss with Liubo about message delivery system.
             }
             else
             {
                 slideshow.NextSlide();
             }
         }
         catch { }
     }
     if (semanticsToDict[0].Key == "previous slide")
     {
         try
         {
             if (null == slideshow)
             {
                 //TODO: see "next slide case"
             }
             else
             {
                 slideshow.PreviousSlide();
             }
         }
         catch { }
     }
     if (semanticsToDict[0].Key == "close presentation")
     {
         try
         {
             if (null == slideshow)
             {
                 //TODO: see "next slide case"
             }
             else
             {
                 slideshow.ClosePresentation();
             }
         }
         catch { }
     }
     if (semanticsToDict[0].Key == "open presentation")
     {
         try
         {
             slideshow = new SlideshowManager(PresentationFilePath);
         }
         catch { }
     }
 }
Beispiel #4
0
        public override void Trigger(List<KeyValuePair<string, string>> semanticsToDict)
        {
            if (semanticsToDict[0].Key == "next slide")
            {
                try
                {
                    if (null == slideshow)
                    {
                        //TODO: exception handling. Discuss with Liubo about message delivery system.
                    }
                    else
                    {

                        slideshow.NextSlide();
                    }
                }
                catch { }
            }
            if (semanticsToDict[0].Key == "previous slide")
            {
                try
                {
                    if (null == slideshow)
                    {
                        //TODO: see "next slide case"
                    }
                    else
                    {
                        slideshow.PreviousSlide();
                    }
                }
                catch { }
            }
            if (semanticsToDict[0].Key == "close presentation")
            {
                try
                {
                    if (null == slideshow)
                    {
                        //TODO: see "next slide case"
                    }
                    else
                    {
                        slideshow.ClosePresentation();
                    }
                }
                catch { }
            }
            if (semanticsToDict[0].Key == "open presentation")
            {
                try
                {
                    slideshow = new SlideshowManager(PresentationFilePath);
                }
                catch { }
            }
        }