DebugUtilForm.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using efunbox_xyyf_windows.util;
  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 efunbox_xyyf_windows
  12. {
  13. public partial class DebugUtilForm : Form
  14. {
  15. public DebugUtilForm()
  16. {
  17. InitializeComponent();
  18. LenvId.Text = "联想用户ID:" + LenvSDK.mLenvUserInfo.data.lenovoId;
  19. uuid.Text="UUID:"+ComputerUniqueHelper.GetComputerUUID();
  20. }
  21. private void textBox1_TextChanged(object sender, EventArgs e)
  22. {
  23. if (newWebUrl.Text.Length == 0)
  24. {
  25. newWebUrl.Text = "请输入地址";
  26. }
  27. }
  28. private void newWebUrl_Enter(object sender, EventArgs e)
  29. {
  30. newWebUrl.Text = "";
  31. }
  32. private void changeWebUrl_Click(object sender, EventArgs e)
  33. {
  34. if (newWebUrl.Text.Length > 0)
  35. {
  36. Main.changeWebUrl(newWebUrl.Text);
  37. }
  38. }
  39. private void button1_Click(object sender, EventArgs e)
  40. {
  41. Main.webviewReload();
  42. }
  43. private void button2_Click(object sender, EventArgs e)
  44. {
  45. string url = Main.getWebNowUrl();
  46. if (url == null)
  47. {
  48. nowUrl.Text = "稍等..";
  49. }
  50. else
  51. {
  52. url = url.Replace("&", "&&");
  53. nowUrl.Text = url;
  54. }
  55. }
  56. private void lenvLogout_Click(object sender, EventArgs e)
  57. {
  58. LenvSDK.LenvLogout();
  59. }
  60. }
  61. }