private void simpleButton1_Click(object sender, EventArgs e) { eeprom.Vin = textEdit3.Text; eeprom.Immo = textEdit1.Text; eeprom.ImmoActive = checkEdit1.Checked; eeprom.Key = Convert.ToInt32(textEdit4.Text); eeprom.UpdateFile(_filename); DialogResult = DialogResult.OK; this.Close(); }