public void TimedScreenshot(int seconds) { var future = DateTime.Now.AddSeconds(seconds); do { uiActionLoggedToolStripStatusLabel.Text = string.Format("Screenshotting in: {0}", (future - DateTime.Now).ToString("ss")); Application.DoEvents(); } while (future > DateTime.Now); uiActionLoggedToolStripStatusLabel.Text = ""; CurrentBrowser.GetCurrentViewportScreenshot(); }
public void CurrentViewScreenshot() { CurrentBrowser.GetCurrentViewportScreenshot(); }