예제 #1
0
 public SampleDataItem(String uniqueId, String title, double price, String imagePath, String description, String content, SampleDataGroup group)
     : base(uniqueId, title, "", imagePath, description)
 {
     this._content = content;
     this._group = group;
     this._price = price;
 }
예제 #2
0
        static void data_LoadCompleted(object sender, LoadCompletedEventArgs e)
        {
            var result = sender as DataServiceCollection<JayStorm.Repository.Category>;
            foreach (var cat in result)
            {
                var group = new SampleDataGroup(cat.id,
                   cat.CategoryName,
                   cat.Name,
                   cat.ImageUrl,
                   cat.Description);

                var flowers = new DataServiceCollection<JayStorm.Repository.Flower>(SampleDataSource._context);
                flowers.LoadCompleted += flowers_LoadCompleted;
                flowers.LoadAsync(SampleDataSource._context.Flowers.Where(f => f.Category_ID == cat.id));

                _sampleDataSource.AllGroups.Add(group);
            }
        }
예제 #3
0
 public SampleDataItem(String uniqueId, String title, double price, String imagePath, String description, String content, SampleDataGroup group)
     : base(uniqueId, title, "", imagePath, description)
 {
     this._content = content;
     this._group   = group;
     this._price   = price;
 }