|
@@ -1,3 +1,4 @@
|
|
|
|
+using System.Diagnostics;
|
|
using Microsoft.Web.WebView2.Core;
|
|
using Microsoft.Web.WebView2.Core;
|
|
|
|
|
|
namespace EdgeVoyager
|
|
namespace EdgeVoyager
|
|
@@ -409,7 +410,7 @@ namespace EdgeVoyager
|
|
private void 打开OToolStripMenuItem_Click(object sender, EventArgs e)
|
|
private void 打开OToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
{
|
|
OpenFileDialog openFileDialog = new OpenFileDialog();
|
|
OpenFileDialog openFileDialog = new OpenFileDialog();
|
|
- openFileDialog.Filter = "网页文件 (*.html;*.htm)|*.html;*.htm|可缩放矢量图形文件 (*.svg)|*.svg|所有文件 (*.*)|*.*";
|
|
|
|
|
|
+ openFileDialog.Filter = "网页文件 (*.html;*.htm)|*.html;*.htm|可缩放矢量图形文件 (*.svg)|*.svg|所有文件 (*.*)|*.*";
|
|
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
|
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
|
{
|
|
{
|
|
string filePath = openFileDialog.FileName;
|
|
string filePath = openFileDialog.FileName;
|
|
@@ -452,5 +453,15 @@ namespace EdgeVoyager
|
|
{
|
|
{
|
|
webView21.CoreWebView2.ShowPrintUI();
|
|
webView21.CoreWebView2.ShowPrintUI();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ private void 发送SToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
+ {
|
|
|
|
+ string mailtoLink = $"mailto:?subject=共享网页&body=请查看这个网页:" + comboBox1.Text;
|
|
|
|
+ Process.Start(new ProcessStartInfo
|
|
|
|
+ {
|
|
|
|
+ FileName = mailtoLink,
|
|
|
|
+ UseShellExecute = true
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|