public void Action(MTMapUser ansuerUser)
        {
            tbText.Document.Blocks.Clear();
            Paragraph parag = MTControler.GetText(_Map.SelectedPatch, "$Verse$");

            if (parag != null)
            {
                tbText.Document.Blocks.Add(parag);
            }
        }
Beispiel #2
0
        public Paragraph GetCorrectAnsuer()
        {
            Paragraph parag    = MTControler.GetText(_objPatch.LstAdress, "$Verse$");
            Run       rCorrect = new Run("Texto correto: ");

            rCorrect.FontWeight = FontWeights.Bold;
            parag.Inlines.InsertBefore(parag.Inlines.FirstInline, rCorrect);
            parag.LineHeight = 3;
            return(parag);
        }
Beispiel #3
0
        public Paragraph GetParagAsk(string sSeparator)
        {
            Run rAsk = new Run("Que texto é esse?\n");

            rAsk.FontWeight = FontWeights.Bold;
            Paragraph parag = new Paragraph();

            parag = MTControler.GetText(_objPatch.LstAdress, sSeparator);
            parag.Inlines.InsertBefore(parag.Inlines.FirstInline, rAsk);
            return(parag);
        }
Beispiel #4
0
        public Paragraph GetWrongAnsuer()
        {
            if (_LstAnsuer == null || _LstAnsuer.Count == 0 || (_LstAnsuer.First() as MTVerseModel) == null)
            {
                return(new Paragraph());
            }

            Paragraph parag      = MTControler.GetText(_LstAnsuer, "$Verse$");
            Run       rIncorrect = new Run("Texto da sua resposta: ");

            rIncorrect.FontWeight = FontWeights.Bold;
            parag.Inlines.InsertBefore(parag.Inlines.FirstInline, rIncorrect);
            parag.LineHeight = 1;
            return(parag);
        }