Пример #1
0
		void CreateList() {
			if (!CanCreateList)
				return;
			var name = askUser(dnSpy_Resources.OpenList_AskForName);
			if (string.IsNullOrEmpty(name))
				return;

			var vm = new FileListVM(this, new FileList(name), false, true);
			addedFileLists.Add(vm);
			fileListColl.Add(vm);
		}
Пример #2
0
 public void WriteName(FileListVM vm)
 {
     output.Write(vm.Name, TextTokenKind.Assembly);
 }
Пример #3
0
		bool CalculateIsVisible(FileListVM vm, string filterText) {
			Debug.Assert(filterText != null && filterText.Trim().ToUpperInvariant() == filterText);
			if (string.IsNullOrEmpty(filterText) && !ShowSavedLists)
				return true;
			if (ShowSavedLists && !vm.IsUserList)
				return false;
			var name = vm.Name.ToUpperInvariant();
			foreach (var s in filterText.ToUpperInvariant().Split(sep)) {
				if (!name.Contains(s))
					return false;
			}
			return true;
		}
Пример #4
0
 public void WriteFileCount(FileListVM vm)
 {
     output.Write(vm.FileCount.ToString(), TextTokenKind.Number);
 }