Exemplo n.º 1
0
        private void ShowActivePresentation(PowerPoint.SlideShowWindow wn)
        {
            started = true;

            var ribbon = Globals.Ribbons.GetRibbon <MyRibbon>();


            client = new PromptrClient();
            client.StartCountdown(ribbon.TotalDuration, ribbon.SlideDurations);
        }
Exemplo n.º 2
0
        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            Globals.ThisAddIn.Application.SlideShowBegin += ShowActivePresentation;
            Globals.ThisAddIn.Application.SlideShowEnd   += (args) =>
            {
                started = false;
                client.EndCountdown();
            };
            Globals.ThisAddIn.Application.SlideShowNextSlide += Application_SlideShowNextSlide;

            client = new PromptrClient();
        }