27 lines
711 B
C#
27 lines
711 B
C#
|
|
using Cvte.EasiNote;
|
||
|
|
using Cvte.Windows.Input;
|
||
|
|
|
||
|
|
namespace BetterEN5.UI;
|
||
|
|
|
||
|
|
public class ImportInkMenuItem : BoardEditMenuItem
|
||
|
|
{
|
||
|
|
public ImportInkMenuItem()
|
||
|
|
{
|
||
|
|
SortHint = 997;
|
||
|
|
Command = new DelegateCommand(() =>
|
||
|
|
{
|
||
|
|
var dialog = new Microsoft.Win32.OpenFileDialog
|
||
|
|
{
|
||
|
|
Title = "导入墨迹",
|
||
|
|
Filter = "墨迹文件 (*.ink.json)|*.ink.json|所有文件 (*.*)|*.*",
|
||
|
|
DefaultExt = ".ink.json"
|
||
|
|
};
|
||
|
|
if (dialog.ShowDialog() == true)
|
||
|
|
{
|
||
|
|
System.Diagnostics.Debug.WriteLine($"导入墨迹: {dialog.FileName}");
|
||
|
|
}
|
||
|
|
});
|
||
|
|
Predicate = _ => true;
|
||
|
|
}
|
||
|
|
}
|