private void AddFolder(string argsFullPath, string s) { if (_folders == null && _allItems == null) { return; } var vm = new FolderViewModel(argsFullPath, _rootPath, this as FolderViewModel, _assets); Insert(_folders, vm); Insert(_allItems, vm); }
public ExportPackageViewModel(IConfigurationContainer <NugetPackageConfiguration> configuration, FolderViewModel rootFolder) { _configuration = configuration; IncVersionCommand = new ActionCommand(IncVersion); var conf = _configuration.Value; if (string.IsNullOrEmpty(conf.PackageName)) { conf.PackageName = rootFolder.Name; } var exclusionList = new HashSet <string>(conf.ExcludeFiles ?? new string[0]); Files = GetAllFiles(rootFolder, rootFolder.ResourcePath + "/").Select(_ => { _.Include = !exclusionList.Contains(_.RelName); return(_); }).OrderBy(_ => _.RelName).ToArray(); }
public void ImportAssets(FolderViewModel targetFolder) { _batch.ImportTo(targetFolder); }
public ImportAssetsViewModel(string[] files, FolderViewModel viewModelSelectedFolder) { _batch = new MultifileImporterViewModel(new BatchImporter(files)); }