public SampleDataGroup() : base() { this.Title = "Sample Data Group"; var groups = new CommonDataGroup[] { new CommonDataGroup() { Title = "Group 1" }, new CommonDataGroup() { Title = "Group 2" }, new CommonDataGroup() { Title = "Group 3" }, new CommonDataGroup() { Title = "Group 4" } }; var groupItems = groups.SelectMany(group => group.Items); foreach (var item in groupItems) Items.Add(item); }
private ICommonDataGroup CreateCategory(ForumCategory category) { var group = new CommonDataGroup(); group.Title = category.ToString().ToLower(); return group; }