public void AddFiles(IEnumerable <GacFileInfo> files) { foreach (var file in files) { var vm = new GACFileVM(this, file); vm.IsDuplicate = uniqueFiles.Contains(vm); uniqueFiles.Add(vm); this.Collection.Add(vm); } RefreshCounters(); }
bool CalculateIsVisible(GACFileVM vm, string filterText) { Debug.Assert(filterText != null && filterText.Trim().ToUpperInvariant() == filterText); if (!ShowDuplicates && vm.IsDuplicate) { return(false); } if (string.IsNullOrEmpty(filterText)) { return(true); } var name = vm.Name.ToUpperInvariant(); foreach (var s in filterText.ToUpperInvariant().Split(sep)) { if (!name.Contains(s)) { return(false); } } return(true); }
public void WriteVersion(GACFileVM vm) => output.Write(vm.Version);
public void WriteName(GACFileVM vm) => output.Write(vm.IsExe ? BoxedTextColor.AssemblyExe : BoxedTextColor.Assembly, vm.Name);
public void WriteVersion(GACFileVM vm) { output.Write(vm.Version); }
public void WriteName(GACFileVM vm) { output.Write(vm.Name, vm.IsExe ? TextTokenKind.AssemblyExe : TextTokenKind.Assembly); }