|
@@ -179,8 +179,11 @@ namespace EdgeVoyager
|
|
|
|
|
|
private void search_button_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- webView21.CoreWebView2.Navigate("https://cn.bing.com/search?q=" + textBox1.Text);
|
|
|
- webView21.CoreWebView2.Profile.PreferredColorScheme = CoreWebView2PreferredColorScheme.Light;
|
|
|
+ if(textBox1.Text.Length > 0)
|
|
|
+ {
|
|
|
+ webView21.CoreWebView2.Navigate("https://cn.bing.com/search?q=" + textBox1.Text);
|
|
|
+ webView21.CoreWebView2.Profile.PreferredColorScheme = CoreWebView2PreferredColorScheme.Light;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void webView21_NavigationStarting(object sender, CoreWebView2NavigationStartingEventArgs e)
|
|
@@ -326,5 +329,19 @@ namespace EdgeVoyager
|
|
|
string requestUri = e.Request.Uri;
|
|
|
StatusLabel.Text = "헝헹栗都:" + requestUri;
|
|
|
}
|
|
|
+
|
|
|
+ private void 묏야으ToolStripMenuItem_CheckStateChanged(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+ if (묏야으ToolStripMenuItem.Checked == true)
|
|
|
+ {
|
|
|
+ statusStrip1.Visible = true;
|
|
|
+ webView21.Height = webView21.Height - 23;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ statusStrip1.Visible = false;
|
|
|
+ webView21.Height = webView21.Height + 23;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|