using System; using System.Windows.Forms; using DecryptPwd.Utils; namespace DecryptPwdGUI { public partial class frmMain : Form { string[] AppList = { "NavicatCrypto", "TeamViewer", "FileZilla", "WinSCP", "Xmangager", "LoginEvent", "Foxmail" }; public frmMain() { InitializeComponent(); } private void btnDecrypt_Click(object sender, EventArgs e) { string appItem = cmbAppList.SelectedItem.ToString(); if (appItem == AppList[0]) { tbResult.Text = FileZilla.Decrypt("fff"); } else if (appItem == AppList[1]) { tbResult.Text = TeamViewer.Decrypt("fff"); } else if (appItem == AppList[2]) { tbResult.Text = WinSCP.Decrypt("fff"); } else if (appItem == AppList[3]) { tbResult.Text = Xmangager.Decrypt("fff"); } else if (appItem == AppList[4]) { tbResult.Text = Xmangager.Decrypt("fff"); } else if (appItem == AppList[5]) { tbResult.Text = Navicat.Decrypt("fff"); } else if (appItem == AppList[6]) { tbResult.Text = FoxmailUtils.Decrypt(19, "fff"); } } private void frmMain_Load(object sender, EventArgs e) { foreach (string app in AppList) { cmbAppList.Items.Add(app); } cmbAppList.SelectedIndex = 0; } } }