private void button6_Click(object sender, EventArgs e) { string strkey = txtKey.Text; string strcer = txtCer.Text; Models.Configuration config = new Models.Configuration(); using (config) { config.Id = Id; config.Key = strkey.Replace("\\", "/"); config.Cer = strcer.Replace("\\", "/"); config.Pass = txtContra.Text; config.updateCertified(); } MessageBox.Show("Actualización exitosa"); }