Beispiel #1
0
 public MainForm()
 {
     InitializeComponent();
     theBook.Initialize();
     if (theStatue.Initialize())
     {
         lblWord.Text     = theBook.lstVocabularies[theStatue.Index].Word;
         lblMeaning.Text  = theBook.lstVocabularies[theStatue.Index].Meaning;
         lblPhonetic.Text = "[ " + theBook.lstVocabularies[theStatue.Index].Phonetic + " ]";
         nudSecond.Value  = theStatue.Second;
         tmrAuto.Interval = theStatue.Second * 1000;
         if (theStatue.IsRandom)
         {
             chkRandom.Checked = true;
         }
     }
     else
     {
         lblWord.Text     = theBook.lstVocabularies.First <Vocabulary>().Word;
         lblMeaning.Text  = theBook.lstVocabularies.First <Vocabulary>().Meaning;
         lblPhonetic.Text = "[ " + theBook.lstVocabularies.First <Vocabulary>().Phonetic + " ]";
     }
     this.TopMost = false;
 }