private void dictSelector_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (dictSelector.SelectedItem == ciEnglish_Chinese) {
         if (!File.Exists(Gib.hostpath + "\\ConciseOxfordEnglishChineseDictionary.db")) {
             dictSelector.SelectedItem = ciNone;
             FrmDownload_Dict frm = new FrmDownload_Dict();
             frm.ShowDialog(this);
         }
         else {
             dictConnection =
                 new SQLiteConnection("Data Source =" + Gib.hostpath +
                                      "\\ConciseOxfordEnglishChineseDictionary.db");
             dictConnection.Open();
         }
     }
 }
Exemplo n.º 2
0
 private void dictSelector_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (dictSelector.SelectedItem == ciEnglish_Chinese)
     {
         if (!File.Exists(Gib.hostpath + "\\ConciseOxfordEnglishChineseDictionary.db"))
         {
             dictSelector.SelectedItem = ciNone;
             FrmDownload_Dict frm = new FrmDownload_Dict();
             frm.ShowDialog(this);
         }
         else
         {
             dictConnection =
                 new SQLiteConnection("Data Source =" + Gib.hostpath +
                                      "\\ConciseOxfordEnglishChineseDictionary.db");
             dictConnection.Open();
         }
     }
 }