SetPassword() public static method

Set/Change the password of the specified profile
public static SetPassword ( int id, string password ) : void
id int Profile ID
password string Password
return void
コード例 #1
0
        private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                UserPassword password = new UserPassword();
                password.SetText = "Set password for: " + lvAccounts.Items[lvAccounts.SelectedIndices[0]].SubItems[1].Text;

                if (password.ShowDialog() == DialogResult.OK)
                {
                    AWBProfiles.SetPassword(int.Parse(lvAccounts.Items[lvAccounts.SelectedIndices[0]].Text), password.GetPassword);
                }
            }
            finally
            {
                loadProfiles();
            }
        }