private void weibo_topic_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { string topic = weibo_topic.Text; WeiboHelper weibohelper = new WeiboHelper(); weibohelper.settopic(topic); wb_weibo.Navigate(new Uri(strPATH + @"/bin/Debug/weibo.htm")); } }
private void weibo_search_Click(object sender, System.Windows.RoutedEventArgs e) { // TODO: Add event handler implementation here. string topic = weibo_topic.Text; WeiboHelper weibohelper = new WeiboHelper(); weibohelper.settopic(topic); wb_weibo.Navigate(new Uri(strPATH + @"/bin/Debug/weibo.htm")); }