Files
Better-Seewo/Better-EN5/UI/ExportInkMenuItem.cs

28 lines
766 B
C#
Raw Normal View History

using Cvte.EasiNote;
using Cvte.Windows.Input;
namespace BetterEN5.UI;
public class ExportInkMenuItem : BoardEditMenuItem
{
public ExportInkMenuItem()
{
SortHint = 998;
Command = new DelegateCommand(() =>
{
var dialog = new Microsoft.Win32.SaveFileDialog
{
Title = "导出墨迹",
Filter = "墨迹文件 (*.ink.json)|*.ink.json|所有文件 (*.*)|*.*",
DefaultExt = ".ink.json",
FileName = "课件墨迹.ink.json"
};
if (dialog.ShowDialog() == true)
{
System.Diagnostics.Debug.WriteLine($"导出墨迹到: {dialog.FileName}");
}
});
Predicate = _ => true;
}
}