Пример #1
0
        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");
            }
        }
Пример #2
0
        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");
            }
        }