private void m_buttonPassword_Click(object sender, System.EventArgs e) { if (m_listViewUsers.SelectedItems.Count == 1) { ListViewItem itemSelected = m_listViewUsers.SelectedItems[0]; UserPasswordForm form = new UserPasswordForm(); if (form.ShowDialog() == DialogResult.OK) { Assemblies.Ftp.UserData.Get().SetUserPassword(itemSelected.SubItems[0].Text, form.Password); } } else { MessageBox.Show("Please select a user in the list", "CSFtp"); } }