public static SetPassword ( int id, string password ) : void | ||
id | int | Profile ID |
password | string | Password |
Результат | void |
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(); } }