public SampleDataSource() { foreach (deity deity in App.allDeities) { var groupDeity = new SampleDataGroup(deity.DeityID, deity.DeityName, "Shlokas on " + deity.DeityName, deity.DeityImage, ""); foreach (shlokas shloka in deity.ShlokasOfDeity) { var itemShloka = new SampleDataItem(deity.DeityID + "-" + shloka.ShlokaID, shloka.ShlokaName, "", deity.DeityImage, shloka.ShlokaOriginal, shloka.ShlokaEnglish, groupDeity); groupDeity.Items.Add(itemShloka); } this.AllGroups.Add(groupDeity); } }
public SampleDataItem(String uniqueId, String title, String subtitle, String imagePath, String description, String content, SampleDataGroup group) : base(uniqueId, title, subtitle, imagePath, description) { this._content = content; this._group = group; }