private void Menu_FormClosing(object sender, FormClosingEventArgs e) { if (program_closes) { } else { save_settings(); closing = true; FormManager.Sluit_form(this); } }
private void update_FormClosing(object sender, FormClosingEventArgs e) { if (skip_close) { skip_close = false; FormManager.Sluit_form(this); e.Cancel = true; } if (e.CloseReason == CloseReason.UserClosing && !program_closes) { //start close-route FormManager.Sluit_forms(this); e.Cancel = true; } }