Ejemplo n.º 1
0
 private void Menu_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (program_closes)
     {
     }
     else
     {
         save_settings();
         closing = true;
         FormManager.Sluit_form(this);
     }
 }
Ejemplo n.º 2
0
 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;
     }
 }