예제 #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);
         this.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.Name, vm.IsExe ? TextTokenKind.AssemblyExe : TextTokenKind.Assembly);
 }
예제 #7
0
 public void WriteName(GACFileVM vm)
 {
     output.Write(vm.Name, vm.IsExe ? TextTokenKind.AssemblyExe : TextTokenKind.Assembly);
 }