private void btnSave_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(FileName) && MessageBox.Show("Save settings? This overwrites existing files", "Overwrite savegame", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { WOS4.Write(C, FileName); MessageBox.Show("Settings saved", "Settings saved", MessageBoxButtons.OK, MessageBoxIcon.Information); } }