frmMain.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.Windows.Forms;
  3. using DecryptPwd.Utils;
  4. namespace DecryptPwdGUI
  5. {
  6. public partial class frmMain : Form
  7. {
  8. string[] AppList = { "NavicatCrypto", "TeamViewer", "FileZilla", "WinSCP", "Xmangager", "LoginEvent", "Foxmail" };
  9. public frmMain()
  10. {
  11. InitializeComponent();
  12. }
  13. private void btnDecrypt_Click(object sender, EventArgs e)
  14. {
  15. string appItem = cmbAppList.SelectedItem.ToString();
  16. if (appItem == AppList[0])
  17. {
  18. tbResult.Text = FileZilla.Decrypt("fff");
  19. }
  20. else if (appItem == AppList[1])
  21. {
  22. tbResult.Text = TeamViewer.Decrypt("fff");
  23. }
  24. else if (appItem == AppList[2])
  25. {
  26. tbResult.Text = WinSCP.Decrypt("fff");
  27. }
  28. else if (appItem == AppList[3])
  29. {
  30. tbResult.Text = Xmangager.Decrypt("fff");
  31. }
  32. else if (appItem == AppList[4])
  33. {
  34. tbResult.Text = Xmangager.Decrypt("fff");
  35. }
  36. else if (appItem == AppList[5])
  37. {
  38. tbResult.Text = Navicat.Decrypt("fff");
  39. }
  40. else if (appItem == AppList[6])
  41. {
  42. tbResult.Text = FoxmailUtils.Decrypt(19, "fff");
  43. }
  44. }
  45. private void frmMain_Load(object sender, EventArgs e)
  46. {
  47. foreach (string app in AppList)
  48. {
  49. cmbAppList.Items.Add(app);
  50. }
  51. cmbAppList.SelectedIndex = 0;
  52. }
  53. }
  54. }