コード例 #1
0
ファイル: UsersForm.cs プロジェクト: emacslisp/cs
        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
ファイル: UsersForm.cs プロジェクト: fubar-coder/CSFtp
        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");
            }
        }