private void btnSave_Click(object sender, EventArgs e) { _storedCredentials = _credentials; //save the working credentials over the top of the stored ones _credentialsPersistence.Save(_credentials); this.Close(); }
public void Save() { _peristence.Save(_credentials); }