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;
 }
 public SampleDataSource()
 {
     _calendarYearData = new Dictionary<int, YearlyPanchangData>();
     var group = new SampleDataGroup("Group-1",
             "Group Title: 1",
             "Group Subtitle: 1",
             "Assets/DarkGray.png",
             "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante");
     group.PanchangDataForYear = _calendarYearData;
     group.Year = _year;
     
     group.city = GetCityInformation(_cityToken); ;
     // get two years worth of entries
     for (int year = _startYear; year <= (_startYear+1); year++)
     {
         for (int month = 0; month < 12; month++)
         {
             var item = new SampleDataItem(_monthStrings[month] + year,
                 _monthStrings[month],
                 _monthStrings[month],
                 "Assets/DarkGray.png",
                 "Group Description: {0} " + _monthStrings[month],
                 (month + 1).ToString(),
                 group);
             group.Items.Add(item);
             item.Year = year;
         }
     }
     this.ItemGroups.Add(group);
     _group = group;
 }
Ejemplo n.º 3
0
 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;
 }