예제 #1
0
 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();
     }
 }
예제 #2
0
파일: Ui.cs 프로젝트: nikita-v/Screenshoter
 private void ScreenshotReady(object sender, ScreenshotReadyEventArgs e)
 {
     screenshotUploader.Upload(e.Screenshot);
 }