public Vocabularies()
        {
            InitializeComponent();

            QuestControl.LoadCrossData(Model.Voc);

            BuildHeader();
        }
        public Pronunciations()
        {
            InitializeComponent();

            QuestControl.LoadCrossData(Model.Pron);

            BuildHeader();
        }
        public Spellings()
        {
            InitializeComponent();

            QuestControl.LoadCrossData(Model.Spell);

            BuildHeader();
        }
        public PronunPract()
        {
            InitializeComponent();

            QuestControl.LoadCrossData(Model.Pron);

            passedQuestIds = new List <int>();
            LoadPronunQuest();
        }
        private void LoadPronunQuest()
        {
            actualQuest = QuestControl.GetRandomAvailableQuestion(Model.Pron, passedQuestIds);

            while (cb_justTH.IsChecked.Value &&
                   (!(actualQuest as PronVM).Phonemes.Contains("θ") && !(actualQuest as PronVM).Phonemes.Contains("ð")))
            {
                actualQuest = QuestControl.GetRandomAvailableQuestion(Model.Pron, passedQuestIds);
            }

            lblWord.Content     = actualQuest.Text;
            lblPhonemes.Content = (actualQuest as PronVM).Phonemes;

            FileHtmlControls.PlayPronunciation(actualQuest.Text);
            passedQuestIds.Add(actualQuest.Id);
        }
 public VocFilter() : base(QuestControl.Get(Model.Voc))
 {
 }
Esempio n. 7
0
 public PronFilter() : base(QuestControl.Get(Model.Pron))
 {
 }
Esempio n. 8
0
 public List <string> GetSentences()
 {
     return(QuestControl.GetSentences(this));
 }
Esempio n. 9
0
 public SpellFilter() : base(QuestControl.Get(Model.Spell))
 {
 }