Sic04/Yalv/YALV/AddFolderPath.xaml.cs

32 lines
733 B
C#
Raw Normal View History

2022-09-19 09:16:33 +08:00
using System.Windows;
using YALV.Common.Interfaces;
using YALV.ViewModel;
namespace YALV
{
/// <summary>
/// Interaction logic for AddFolderPath.xaml
/// </summary>
public partial class AddFolderPath : Window, IWinSimple
{
public AddFolderPath()
{
InitializeComponent();
//this.Closing += delegate { _vm.Dispose(); };
}
public bool EditList()
{
bool res = false;
AddFolderPathVM _vm = new AddFolderPathVM(this);
using (_vm)
{
this.DataContext = _vm;
this.ShowDialog();
res = _vm.ListChanged;
}
return res;
}
}
}