32 lines
733 B
C#
32 lines
733 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|