コード例 #1
0
 private void ExecuteAddNew(object parameter)
 {
     ProductNames.Add(new ModelBaseVM()
     {
         Name = string.Empty, IsEnabled = true, IsChecked = false
     });
     ScrollToIndex = ProductNames.Count() - 1;
     CheckValidation();
 }
コード例 #2
0
 /// <summary>
 /// Get the ProductDetails
 /// </summary>
 private void GetProductDetails()
 {
     for (int i = 0; i < 40; i++)
     {
         ProductInfoModel p = new ProductInfoModel();
         p.ProductName = ProductNames[r.Next(ProductNames.Count() - 1)];
         p.Year2008    = r.Next(100, 300);
         p.Year2009    = r.Next(400, 600);
         this.productDetails.Add(p);
     }
 }