CUIB010302SP.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.Windows.Forms;
  9. using CoreFS.CA06;
  10. namespace Core.LZMes.Client.UIB
  11. {
  12. public partial class CUIB010302SP : FrmBase
  13. {
  14. public CUIB010302SP()
  15. {
  16. InitializeComponent();
  17. }
  18. public string ePassWord = "";//存入用户输入的密码
  19. private void button1_Click(object sender, EventArgs e)
  20. {
  21. try
  22. {
  23. ePassWord = this.editPassWord.Text.ToString(); //用户输入密码
  24. }
  25. catch (Exception ex)
  26. {
  27. System.Diagnostics.Debug.WriteLine(ex.ToString());
  28. }
  29. this.DialogResult = DialogResult.OK;
  30. }
  31. private void button2_Click(object sender, EventArgs e)
  32. {
  33. this.Close();
  34. }
  35. private void CUIB010302SP_Activated(object sender, EventArgs e)
  36. {
  37. this.editPassWord.Focus();//换焦点
  38. }
  39. }
  40. }