FormViewPhoto.cs 695 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace ImpulseVision
  11. {
  12. public partial class FormViewPhoto : Form
  13. {
  14. public FormViewPhoto()
  15. {
  16. InitializeComponent();
  17. }
  18. private void FormViewPhoto_KeyDown(object sender, KeyEventArgs e)
  19. {
  20. if(e.KeyCode == Keys.Escape)
  21. {
  22. this.Close();
  23. }
  24. }
  25. private void PbxImage_Click(object sender, EventArgs e)
  26. {
  27. this.Close();
  28. }
  29. }
  30. }