Exemplo n.º 1
0
 ////////////////////////////////////////////////////////////////////////
 ///
 /// @fn private void ModeJeu_Deactivate(object sender, EventArgs e)
 /// @brief Desactiver les palettes lorsqu'on sort de la form
 /// @param[in] sender : Objet duquel provient un evenement.
 /// @param[in] e : evenement qui lance la fonction.
 /// @return Aucune.
 ///
 ////////////////////////////////////////////////////////////////////////
 private void ModeJeu_Deactivate(object sender, EventArgs e)
 {
     FonctionsNatives.desactiverPalettesDJ1();
     FonctionsNatives.desactiverPalettesDJ2();
     FonctionsNatives.desactiverPalettesGJ1();
     FonctionsNatives.desactiverPalettesGJ2();
 }
Exemplo n.º 2
0
        ////////////////////////////////////////////////////////////////////////
        ///
        /// @fn public override bool traiterKeyUp(KeyEventArgs e)
        /// @brief Traiter le changement d'etat suite a une action du clavier.
        ///
        /// @param[in] sender : Objet duquel provient un evenement.
        /// @param[in] e : evenement qui lance la fonction.
        ///
        /// @return True ou false selon la reussite des operations.
        ///
        ////////////////////////////////////////////////////////////////////////
        public override bool traiterKeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyValue == parent_.getTouches().PGJ1)
            {
                FonctionsNatives.desactiverPalettesGJ1();
            }
            if (e.KeyValue == parent_.getTouches().PDJ1)
            {
                FonctionsNatives.desactiverPalettesDJ1();
            }
            if (e.KeyValue == parent_.getTouches().PGJ2)
            {
                FonctionsNatives.desactiverPalettesGJ2();
            }
            if (e.KeyValue == parent_.getTouches().PDJ2)
            {
                FonctionsNatives.desactiverPalettesDJ2();
            }
            if (e.KeyValue == parent_.getTouches().Ressort)
            {
                FonctionsNatives.relacherRessort();
            }


            return(true);
        }