Enter.cs 918 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8. namespace MOTINOVA_Motor_Factory_Set
  9. {
  10. public partial class Enter : Form
  11. {
  12. public Enter()
  13. {
  14. InitializeComponent();
  15. }
  16. private void button1_Click(object sender, EventArgs e)
  17. {
  18. this.Close();
  19. }
  20. private void Enter_Load(object sender, EventArgs e)
  21. {
  22. textBox_User.Text = "";
  23. textBox_Passwd.Text = "";
  24. }
  25. private void button_keyboard_Click(object sender, EventArgs e)
  26. {
  27. System.Diagnostics.Process.Start("osk.exe");
  28. }
  29. private void textBox_Passwd_KeyUp(object sender, KeyEventArgs e)
  30. {
  31. if (e.KeyCode == Keys.Enter)
  32. this.Close();
  33. }
  34. }
  35. }