using System; using System.Collections.Generic; using System.Linq; using System.Text; using Lobster.Components; using System.Windows.Media; namespace Lobster.FolderBrowser.Bookmarks { /// <summary> /// This is an adapter to a BookmarkCategory that may /// be placed as child to IPathItemModel in order to /// signal the item is tagged /// </summary> public class Bookmark : ChangeNotifyingObject { private BookmarkCategory category; public Bookmark(BookmarkCategory category) { this.category = category; category.PropertyChanged += (o, e) => { switch (e.PropertyName) { case "Color": case "Name": this.OnPropertyChanged(e.PropertyName); break; default: break; } }; } public Color Color { get { return category.Color; } } public string Name { get { return category.Name; } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)