Exemplo n.º 1
0
        /// <summary>
        /// Display next vocab side 2
        /// </summary>
        public static string displayVocabAnswer()
        {
            //Does Control know class Vocab? Might be better to directly extract side2 without storing a complete object
            Vocab vocab = DataManager.staticDataManager.loadedBox.getVokabel(selectedvocabIdx);

            return(vocab.side2);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create new Vocab with given parameters.
        /// We allow vocabs to exist as duplicates.
        /// </summary>
        /// <param name="pSide1"<>/param>
        /// <param name="pSide2"></param>
        public void addVokabel(string pSide1, string pSide2)
        {
            //How to handle if Vocab already exists with both or one of the sides?
            Vocab voc = new Vocab(pSide1, pSide2, countVocs);

            Vokabeln.Add(voc);
            countVocs++;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Display next vocab side 1
        /// </summary>
        public static string displayVocabQuestion()
        {
            //Does Control know class Vocab? Might be better to directly extract side1 without storing a complete object
            //Vocab vocab = vocabboxList[selectedVocabBoxIdx].getVokabel(selectedvocabIdx);
            int l = DataManager.staticDataManager.loadedBox.getAnzVok();

            if (selectedvocabIdx < l)
            {
                Vocab vocab = DataManager.staticDataManager.loadedBox.getVokabel(selectedvocabIdx);
                return(vocab.side1);
            }
            else
            {
                return("Keine Vokabeln vorhanden!");
            }
        }