public void AddNewAction() { QuickMediaSorterProjectBatch batch = new QuickMediaSorterProjectBatch(); QuickMediaSorterProject.BatchList.Add(batch); ActionViewModel actvm = new ActionViewModel(batch, _qms.Path); UserActions.Add(actvm); actvm.OpenEditInNewWindow(); }
public ActionViewModel(QuickMediaSorterProjectBatch batch, string basePath) { _batch = batch; //Refresh(); EditInNewWindowCommand = new RelayCommand(OpenEditInNewWindow); ActionTypes = Enum.GetNames(typeof(QuickMediaSorter.ObjectModel.ActionType)); PathBrowserViewModel = new PathBrowserViewModel(); PathBrowserViewModel.BasePath = basePath; PathBrowserViewModel.Path = Action.Folder; PathBrowserViewModel.OnPathChanged += (s, e) => { Action.Path = PathBrowserViewModel.Path; Refresh(); }; }