Verify.cs 805 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using CCWin;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. namespace MOKA_Factory_Tools
  12. {
  13. public partial class Verify : Skin_Color
  14. {
  15. public Verify()
  16. {
  17. InitializeComponent();
  18. }
  19. private void Verify_Load(object sender, EventArgs e)
  20. {
  21. }
  22. private void textBox1_KeyDown(object sender, KeyEventArgs e)
  23. {
  24. // 判断是否回车登录;
  25. if (e.KeyCode == Keys.Enter)
  26. {
  27. if ( TB_PASSWORD.Text == "123456" )
  28. {
  29. this.Close();
  30. }
  31. }
  32. }
  33. }
  34. }