private static void CaptureFullscreenAndSave() { Image screenCap = null; switch (Settings.FullscreenCapture) { case FullscreenCaptureMode.AllScreens: screenCap = ScreenCapture.CaptureAll(); break; case FullscreenCaptureMode.CursorScreen: screenCap = ScreenCapture.CaptureCursor(); break; case FullscreenCaptureMode.PrimaryScreen: screenCap = ScreenCapture.CapturePrimary(); break; default: screenCap = ScreenCapture.CaptureAll(); break; } if (screenCap == null) { return; } if (Settings.ShowToasts && Settings.ToastCapture) { Notify("Screenshot Captured"); } PublishScreen(screenCap); }