private void Close_Click(object sender, EventArgs e)
 {
     if (Always_Button.Checked)
     {
         MessageBox.Show("You are in 'Always show mode', please uncheck boxe to exit.", "CLOSING DENIED",
                         MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     this.Hide();
     FonctionsNatives.bloquerAffichageGlobal(0);
 }
Exemplo n.º 2
0
 ////////////////////////////////////////////////////////////////////////
 ///
 /// @fn public void toggleDebugOutput()
 /// @brief Bloque ou debloque l'affichage global.
 /// @return Aucune.
 ///
 ////////////////////////////////////////////////////////////////////////
 public void toggleDebugOutput()
 {
     if (FonctionsNatives.obtenirAffichageGlobal() == 0)
     {
         FonctionsNatives.WriteLine("Affichage bloque. On debloque");
         FonctionsNatives.bloquerAffichageGlobal(1);
         Program.myCustomConsole.Show();
         if (Program.mMenu.modeJeuMain != null)
         {
             Program.myCustomConsole.Show();
             Program.mMenu.modeJeuMain.Focus();
         }
     }
     else
     {
         FonctionsNatives.WriteLine("Affichage permis. On bloque");
         FonctionsNatives.bloquerAffichageGlobal(0);
         Program.myCustomConsole.Hide();
     }
 }