예제 #1
0
 public studyPhrasals()
 {
     this.InitializeComponent();
     totalVoc = phrasalVerbs.getTotalVocabulary();
     pos      = 0;
     word     = phrasalVerbs.getWord(0);
     actBoxes();
 }
예제 #2
0
 public testPhrasals()
 {
     this.InitializeComponent();
     total             = phrasalVerbs.getTotalVocabulary();
     word              = phrasalVerbs.getWord(act);
     meaningBox.Text   = word.meaning;
     totalWords.Text   = total.ToString() + " Words to test";
     numRemaining.Text = "Success";
 }
예제 #3
0
 private void next_Click(object sender, RoutedEventArgs e)
 {
     pos++;
     if (pos >= totalVoc)
     {
         pos = 0;
     }
     word = phrasalVerbs.getWord(pos);
     actBoxes();
 }
예제 #4
0
        private void next_Click(object sender, RoutedEventArgs e)
        {
            total -= 1;
            act++;
            if (act >= phrasalVerbs.getTotalVocabulary())
            {
                Next.IsEnabled        = false;
                meaningBox.Background = new SolidColorBrush(Colors.White);
                Example.Background    = new SolidColorBrush(Colors.White);
                wordBox.Background    = new SolidColorBrush(Colors.White);
                GetAnswer.IsEnabled   = false;
                Check.IsEnabled       = false;
                numRemaining.Text     = exitos + " Successes out of " + act;
                totalWords.Text       = total.ToString() + " Words remaining";
                return;
            }
            if (total == 0)
            {
                meaningBox.Text     = "";
                Example.Text        = "";
                meaningBox.Text     = "";
                Next.IsEnabled      = false;
                Check.IsEnabled     = false;
                GetAnswer.IsEnabled = false;
                return;
            }
            word            = phrasalVerbs.getWord(act);
            Check.IsEnabled = true;
            meaningBox.Text = word.meaning;
            Example.Text    = "";

            numRemaining.Text     = exitos + " Successes out of " + act;
            totalWords.Text       = total.ToString() + " Words remaining";
            wordBox.Background    = new SolidColorBrush(Colors.White);
            wordBox.Text          = "";
            Next.IsEnabled        = false;
            meaningBox.Background = new SolidColorBrush(Colors.White);
            Example.Background    = new SolidColorBrush(Colors.White);
            wordBox.Background    = new SolidColorBrush(Colors.White);
        }