public BucketListPage(BucketCategory category) { InitializeComponent(); this.Title = GetCategoryTitle(category); BindingContext = BucketFactory.BucketList.Where(c => c.Category == category); }
private string GetCategoryTitle(BucketCategory category) { switch (category) { case BucketCategory.ThingsToDo: return "Things To Do"; case BucketCategory.PlacesToGo: return "Places To Go"; case BucketCategory.BooksToRead: return "Books To Read"; case BucketCategory.MoviesToWatch: return "Movies To See"; default: return "By Category"; } }
internal DestinyInventoryBucketDefinition(DestinyDefinitionDisplayProperties displayProperties, int bucketOrder, BucketCategory category, bool enabled, bool fifo, bool hasTransferDestination, int itemCount, BucketItemLocation location, Scope scope, bool blacklisted, uint hash, int index, bool redacted) { DisplayProperties = displayProperties; BucketOrder = bucketOrder; Category = category; Enabled = enabled; FirstInFirstOut = fifo; HasTransferDestination = hasTransferDestination; ItemCount = itemCount; Location = location; Scope = scope; Blacklisted = blacklisted; Hash = hash; Index = index; Redacted = redacted; }