Пример #1
0
 private void lbWord_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     String url = String.Format("http://www.google.cn/dictionary?langpair=en|zh-CN&q={0}&hl=zh-CN&aq=f", this.lbWord.Text.ToLower());
     if (browser == null) browser = new Browser();
     browser.Navigate(url);
 }
Пример #2
0
 public bool ConsoleLook(String word)
 {
     try
     {
         String url = String.Format("http://www.google.cn/dictionary?langpair=en|zh-CN&q={0}&hl=zh-CN&aq=f", word);
         if (browser == null) browser = new Browser();
         browser.Navigate(url);
         return true;
     }
     catch (Exception e)
     {
         return false;
     }
 }