Esempio n. 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();
 }
Esempio n. 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);
        }
Esempio n. 3
0
 public void WriteVersion(GACFileVM vm) => output.Write(vm.Version);
Esempio n. 4
0
 public void WriteName(GACFileVM vm) => output.Write(vm.IsExe ? BoxedTextColor.AssemblyExe : BoxedTextColor.Assembly, vm.Name);
Esempio n. 5
0
		public void WriteVersion(GACFileVM vm) => output.Write(vm.Version);
Esempio n. 6
0
		public void WriteName(GACFileVM vm) => output.Write(vm.IsExe ? BoxedTextColor.AssemblyExe : BoxedTextColor.Assembly, vm.Name);