private void SaveAll() { SetPass.SetPassword("p1", textBox1.Text); SetPass.SetPassword("p2", textBox2.Text); SetPass.SetPassword("p3", textBox3.Text); SetPass.SetPassword("p4", textBox4.Text); }
private void buttonDelete_Click(object sender, EventArgs e) { const string message = "Вы хотите очистить все ваши пароли?"; const string caption = "Очистка паролей!"; var result = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { string str = "Пароль не установлен"; SetPass.SetPassword("p1", str); SetPass.SetPassword("p2", str); SetPass.SetPassword("p3", str); SetPass.SetPassword("p4", str); } }
private void button4_Click(object sender, EventArgs e) { SetPass.SetPassword("p4", textBox4.Text); }