public void TakeScreenshot() { string file = _screenshotService.takeScreenshot(_settings.screenPath); if (file == string.Empty) { return; // Game not running } ScreenshotsAdd(file, false); Application.DoEvents(); _syncService.syncscreenshot(_settings.syncURLs, file); }