public static void ShutdownApp() { Nebulus.Win32.PinvokeKeyBoard.stopListening(); Nebulus.Win32.PinvokeMouse.stop(); PowerPointUtlity.CloseSlides(); Application.Exit(); }
private void StartShow() { if (slideInfo.SlideShowPresenter == PresenterType.PowerPoint) { PowerPointUtlity.CloseSlides(); PowerPointUtlity.ShowSlides(slideInfo.PPTFilePath); } if (slideInfo.SlideShowPresenter == PresenterType.Photos) { PowerPointUtlity.ShowSlidesAsPhotos(slideInfo.PPTFilePath); } }
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(); }