public void add(string tekst, string antwoord, bool goedeAntwoord)
 {
     TestOnderdeel t = new TestOnderdeel();
     t.tekst = tekst;
     t.antwoord = antwoord;
     IList<TestOnderdeel> lst = null;
     if (goedeAntwoord)
     {
         lst = goedeAntwoorden;
     }
     else
     {
         lst = antwoorden;
     }
     lst.Add(t);
 }
Example #2
0
        public void add(string tekst, string antwoord, bool goedeAntwoord)
        {
            TestOnderdeel t = new TestOnderdeel();

            t.tekst    = tekst;
            t.antwoord = antwoord;
            IList <TestOnderdeel> lst = null;

            if (goedeAntwoord)
            {
                lst = goedeAntwoorden;
            }
            else
            {
                lst = antwoorden;
            }
            lst.Add(t);
        }