HelpAbout.cs 791 B

123456789101112131415161718192021222324252627282930
  1. //-----------------------------------------------------------------------------
  2. // HelpAbout.cs
  3. //
  4. // Microsoft XNA Community Game Platform
  5. // Copyright (C) Microsoft Corporation. All rights reserved.
  6. //-----------------------------------------------------------------------------
  7. using System;
  8. using System.Collections.Generic;
  9. using System.ComponentModel;
  10. using System.Data;
  11. using System.Drawing;
  12. using System.Text;
  13. using System.Windows.Forms;
  14. namespace Xna.Tools
  15. {
  16. public partial class HelpAbout : Form
  17. {
  18. public HelpAbout()
  19. {
  20. InitializeComponent();
  21. }
  22. private void HelpAbout_KeyDown(object sender, KeyEventArgs e)
  23. {
  24. if (e.KeyCode == Keys.Escape || e.KeyCode == Keys.Enter)
  25. Close();
  26. }
  27. }
  28. }