using System.Windows; using YALV.Common.Interfaces; using YALV.ViewModel; namespace YALV { /// /// Interaction logic for AddFolderPath.xaml /// 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; } } }