Scan.cs 891 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 Welling_Motor_Debug_Tool
  11. {
  12. public partial class Scan : Form
  13. {
  14. public Scan()
  15. {
  16. InitializeComponent();
  17. }
  18. private void button_Enter_Click(object sender, EventArgs e)
  19. {
  20. this.Close();
  21. }
  22. private void Scan_Load(object sender, EventArgs e)
  23. {
  24. }
  25. private void button_keyboard_Click(object sender, EventArgs e)
  26. {
  27. System.Diagnostics.Process.Start("osk.exe");
  28. }
  29. private void textBox_Scan_KeyUp(object sender, KeyEventArgs e)
  30. {
  31. if (e.KeyCode == Keys.Enter)
  32. this.Close();
  33. }
  34. }
  35. }