private void EditScreenshotFormKeyDown(object sender, KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.Z) { screenshotControl.UndoLine(); } else if (e.KeyCode == Keys.Space) { Close(); if (ScreenshotReady != null) { var eventArgs = new ScreenshotReadyEventArgs(GetResultImage()); ScreenshotReady(this, eventArgs); } } else if (e.KeyCode == Keys.Escape) { Close(); } }
private void ScreenshotReady(object sender, ScreenshotReadyEventArgs e) { screenshotUploader.Upload(e.Screenshot); }