Пример #1
0
 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);
         Collection.Add(vm);
     }
     RefreshCounters();
 }
Пример #2
0
        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);
        }
Пример #3
0
 public void WriteVersion(GACFileVM vm) => output.Write(vm.Version);
Пример #4
0
 public void WriteName(GACFileVM vm) => output.Write(vm.IsExe ? BoxedTextColor.AssemblyExe : BoxedTextColor.Assembly, vm.Name);
Пример #5
0
		public void WriteVersion(GACFileVM vm) => output.Write(vm.Version);
Пример #6
0
		public void WriteName(GACFileVM vm) => output.Write(vm.IsExe ? BoxedTextColor.AssemblyExe : BoxedTextColor.Assembly, vm.Name);