Ejemplo n.º 1
0
        private void buttonBackward_Click(object sender, RoutedEventArgs e)
        {
            ShareableContent selectedContent = (ShareableContent)listBoxContentBin.SelectedItem;

            if (selectedContent != null)
            {
                if (selectedContent.Type == ShareableContentType.PowerPoint)
                {
                    if (selectedContent.State == ShareableContentState.Active)
                    {
                        // Only call this method if its PPT content and its currently being presented.
                        PowerPointContent pptC = (PowerPointContent)selectedContent;
                        pptC.GoBackward();
                    }
                    else
                    {
                        Log("Present this PowerPoint before calling this action");
                    }
                }
                else
                {
                    Log("Backward action is only supported for PowerPoint Content. Present PowerPoint content and then call this action.");
                }
            }
            else
            {
                Log("Select a content from Content Bin first");
            }
        }
Ejemplo n.º 2
0
 private void buttonBackward_Click(object sender, RoutedEventArgs e)
 {
     if (pptContent != null)
     {
         if (pptContent.State == ShareableContentState.Active)
         {
             PowerPointContent pptC = (PowerPointContent)pptContent;
             pptC.GoBackward();
         }
     }
 }