Exemple #1
0
        private void listPart_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            switch (this.listPart.SelectedIndex)
            {
            case 0: this.Part = 英単語の練習.wordPart.Noun; break;

            case 1: this.Part = 英単語の練習.wordPart.Adjective; break;

            case 2: this.Part = 英単語の練習.wordPart.Verb; break;

            case 3: this.Part = 英単語の練習.wordPart.Adverb; break;

            case 4: this.Part = 英単語の練習.wordPart.Pronoun; break;

            case 5: this.Part = 英単語の練習.wordPart.Preposition; break;

            case 6: this.Part = 英単語の練習.wordPart.Conjunction; break;

            case 7: this.Part = 英単語の練習.wordPart.AuxiliaryVerb; break;

            case 8: this.Part = 英単語の練習.wordPart.Interjection; break;

            case 9: this.Part = 英単語の練習.wordPart.Construction; break;

            default: this.Part = 英単語の練習.wordPart.Noun; break;
            }            //wordPart の partNumber とリストの順番が必ずしも一致しないので、ここで変換する
        }
Exemple #2
0
 public void setWord(英単語の練習.Word word)
 {
     this.Word      = word.word;
     this.Mean      = word.mean;
     this.Pronounce = word.pron;
     this.Part      = this.Part;
     this.txtWord.Focus();
 }
Exemple #3
0
 public PartChangedEventArgs(wordPart prt)
 {
     this.part = prt;
 }
Exemple #4
0
 public PartChangedEventArgs(string text)
 {
     this.part = new 英単語の練習.wordPart(text);
 }