Beispiel #1
0
        public bool EditList()
        {
            bool            res = false;
            AddFolderPathVM _vm = new AddFolderPathVM(this);

            using (_vm)
            {
                this.DataContext = _vm;
                this.ShowDialog();
                res = _vm.ListChanged;
            }
            return(res);
        }
        public bool EditList()
        {
            var res = false;

            using (var viewModel = new AddFolderPathVM(this))
            {
                //viewModel.Initialize();
                DataContext = viewModel;
                ShowDialog();
                res = viewModel.ListChanged;
            }
            return(res);
        }