|
|
@ -93,7 +93,7 @@ namespace DownKyi.ViewModels.Toolbox
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
VideoPath = SelectVideoFile();
|
|
|
|
VideoPath = DialogUtils.SelectVideoFile();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 去水印事件
|
|
|
|
// 去水印事件
|
|
|
@ -172,24 +172,5 @@ namespace DownKyi.ViewModels.Toolbox
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 选择视频dialog
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
private string SelectVideoFile()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// 选择文件
|
|
|
|
|
|
|
|
var dialog = new Microsoft.Win32.OpenFileDialog
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Filter = "mp4 (*.mp4)|*.mp4"
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
var showDialog = dialog.ShowDialog();
|
|
|
|
|
|
|
|
if (showDialog == true)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return dialog.FileName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else { return ""; }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|