public void ButtonToResetSettings(object sender, EventArgs e) { DialogResult RES = Program.ShowError(3, "Reset settings", "Are you sure you want to reset your settings?\n\nAll your custom values will be lost.", null); if (RES == DialogResult.Yes) { Functions.ResetDriverSettings(); LoadSettings(); } }