Ejemplo n.º 1
0
 public static void ShutdownApp()
 {
     Nebulus.Win32.PinvokeKeyBoard.stopListening();
     Nebulus.Win32.PinvokeMouse.stop();
     PowerPointUtlity.CloseSlides();
     Application.Exit();
 }
Ejemplo n.º 2
0
        private void StartShow()
        {
            if (slideInfo.SlideShowPresenter == PresenterType.PowerPoint)
            {
                PowerPointUtlity.CloseSlides();
                PowerPointUtlity.ShowSlides(slideInfo.PPTFilePath);
            }

            if (slideInfo.SlideShowPresenter == PresenterType.Photos)
            {
                PowerPointUtlity.ShowSlidesAsPhotos(slideInfo.PPTFilePath);
            }
        }
Ejemplo n.º 3
0
        private void BlanketScreen()
        {
            Form window = new Form();

            window.FormBorderStyle = FormBorderStyle.None;
            window.BackColor       = System.Drawing.Color.Black;
            window.Left            = System.Windows.Forms.SystemInformation.VirtualScreen.Left;
            window.Top             = System.Windows.Forms.SystemInformation.VirtualScreen.Top;
            window.Height          = Screen.PrimaryScreen.Bounds.Height;
            window.Width           = System.Windows.Forms.SystemInformation.VirtualScreen.Width;
            window.ShowInTaskbar   = false;
            window.Activated      += (e, o) =>
            {
                PowerPointUtlity.BringToForeGround();
            };
            window.Show();
        }