public static ChipViewModel Create(SchoolBookmark bookmark)
 {
     return(new ChipViewModel(bookmark.School,
                              bookmark.Bookmarked,
                              Color.GetOutlineColor(bookmark.School),
                              Color.GetFillColor(bookmark.School)));
 }
Exemple #2
0
        int IndexOfSchoolBookmark(string school)
        {
            var dummyBookmark = new SchoolBookmark(school, false);

            return(SchoolBookmarks.IndexOf(dummyBookmark));
        }