private void buttonSave_Click(object sender, EventArgs e) { string passwordToRemove = this.textBoxPassword.Text; if (this.editPanel.Tag != null) { PasswordManagerControlListItem pi = (PasswordManagerControlListItem)this.editPanel.Tag; passwordToRemove = pi.Password.ActualPassword; } this.pm.Remove(passwordToRemove); // just in case the same password already exists Growl.Connector.Password p = new Growl.Connector.Password(this.textBoxPassword.Text, this.textBoxDescription.Text, true); this.pm.Add(p); RefreshItems(); this.editPanel.Tag = null; this.editPanel.Visible = false; this.OnUpdated(); }
public PasswordManagerControlListItem(Growl.Connector.Password password) { this.password = password; }