|
@@ -1700,10 +1700,15 @@ namespace PDF_Master.ViewModels
|
|
|
dialogs.ShowDialog(DialogNames.PropertyDialog, valuePairs, null);
|
|
|
}
|
|
|
|
|
|
- private void share()
|
|
|
+ private async void share()
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ //分享前自动保存
|
|
|
+ if (!await SaveBeforeOption())
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
var path = PDFViewer.Document.FilePath;
|
|
|
string subject = "Share With" + " " + PDFViewer.Document.FileName;
|
|
|
System.Diagnostics.Process.Start("outlook", "/a,\"" + path + "\"" + "/m \"" + "&subject=" + subject + "\"");
|