private void buttonSlideShowFullScreen_Click(object sender, RibbonControlEventArgs e)
        {
            try
            {
                thisApplication = Globals.ThisAddIn.Application;
                showWindow = thisApplication.ActivePresentation.SlideShowSettings.Run();

                // If leap is not available, just run slideshow and quit
                while (true)
                {
                    // LeapMotion이 꽂혀 있으면 밖으로 나감
                    if (setupLeapMotion())
                        break;

                    // 만약에 Retry를 No 하면, 걍 종료
                    if (MessageBox.Show("Leap Motion is not connected. Check the connection.", "Leap Motion is missing.", MessageBoxButtons.RetryCancel) == DialogResult.Cancel)
                        return;
                }
                thisApplication.SlideShowEnd += new Microsoft.Office.Interop.PowerPoint.EApplication_SlideShowEndEventHandler(thisApplication_SlideShowEnd);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.StackTrace);
            }
        }
Exemplo n.º 2
0
 void _PowerPointApplication_SlideShowNextSlide(Microsoft.Office.Interop.PowerPoint.SlideShowWindow Wn)
 {
     DisplayInWatchWindow(SlideShowNextSlide++, System.Reflection.MethodInfo.GetCurrentMethod().Name);
 }
Exemplo n.º 3
0
 public override void OnDisconnect(Controller cntrlr)
 {
     ShowWindow = null;
     //Console.WriteLine("Disconnected");
 }
Exemplo n.º 4
0
 public override void OnExit(Controller cntrlr)
 {
     ShowWindow = null;
     //Console.WriteLine("Exited");
 }
 private void OpApp_SlideShowNextSlide(Microsoft.Office.Interop.PowerPoint.SlideShowWindow Wn)
 {
     StartingSlide = Wn.View.CurrentShowPosition;
 }