private void killProcessMenuItem_Click(object sender, EventArgs e) { try { if (procslist.SelectedItems.Count == 1) { if (ProcessManager.KillProcess(int.Parse(procslist.SelectedItems[0].SubItems[0].Text))) { InformUser.showInfo("The process has been killed.."); RefreshProcs(); } } } catch (Exception ex) { InformUser.showError(ex.Message); } }
private void mainForm_Load(object sender, EventArgs e) { try { if (FileZillaChecker.fzInstalled) { detection_message.ForeColor = Color.Green; detection_message.Text = "FileZilla application has been detected on this computer."; _credentials = new List <FileZillaCredentials>(); _credentials = FileZillaCredentialsReader.ReadRecentServers().Union <FileZillaCredentials>(FileZillaCredentialsReader.ReadSiteManager()).ToList <FileZillaCredentials>(); if (_credentials.Count == 0) { InformUser.showInfo("No passwords have been recovered.."); return; } foreach (FileZillaCredentials fzc in _credentials) { credslist.Items.Add(new ListViewItem( new String[] { fzc.Host, fzc.Port, fzc.User, Encoding.UTF8.GetString(Convert.FromBase64String(fzc.Pass)) } )); } counter.Text = _credentials.Count + " credentials found"; } else { detection_message.ForeColor = Color.Red; detection_message.Text = "FileZilla application has NOT been detected on this computer."; } } catch (Exception ex) { InformUser.showError(ex.Message); } }