Tomboy.NoteRecentChanges.FilterByTag C# (CSharp) 메소드

FilterByTag() 개인적인 메소드

Return true if the specified note should be shown in the list based on the current selection of tags. If no tags are selected, all notes should be allowed.
private FilterByTag ( Note note ) : bool
note Note
리턴 bool
		bool FilterByTag (Note note)
		{
			if (selected_tags.Count == 0)
				return true;

			// FIXME: Ugh!  NOT an O(1) operation.  Is there a better way?
			foreach (Tag tag in note.Tags) {
				if (selected_tags.ContainsKey (tag))
					return true;
			}

			return false;
		}