Пример #1
0
        public void ajouterTantQue(TantQue tantQueAAjouter)
        {
            try
            {
                testValiditeExpression(tantQueAAjouter.obtenirChaineAEvaluer(), typeof(bool).Name);
            }
            catch (Exception e)
            {
                return;
            }

            this.algorithme.ajouterBlocTantQue(tantQueAAjouter, this.listBox2.SelectedIndex);

            this.remplirListBoxAlgorithme();
        }
Пример #2
0
        public void ajouterBlocTantQue(TantQue tantQueAAjouter, int numeroDeLigne)
        {
            this.ajouterInstruction(tantQueAAjouter, numeroDeLigne);
            this.ajouterLigneVide(numeroDeLigne + 1);

            this.ajouterLigneVide(numeroDeLigne + 2);
            this.ajouterInstruction(new FinTantQue(), numeroDeLigne + 2);
        }