Ejemplo n.º 1
0
            public ProductsTableSource(List <ProductsPriceInStoreService> items, ProductsStorePricesView controller)
            {
                tableItems       = items;
                this.controller  = controller;
                PlaceholderImage = MaxResizeImage(Images.sinImagen, 80, 80);

                controller.productImages.CollectionChanged += HandleCollectionChanged;
                // If either a download fails or the image we download is corrupt, ignore the problem.
                TaskScheduler.UnobservedTaskException += delegate(object sender, UnobservedTaskExceptionEventArgs e) {
                    e.SetObserved();
                };
            }
Ejemplo n.º 2
0
			public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
			{
				pspv = new ProductsStorePricesView ();
				pspv.setData (ProductsInListView.list_id, tableItems [indexPath.Row].id, tableItems[indexPath.Row].nombre);
				controller.NavigationController.PushViewController (pspv, true);
			}
			public ProductsTableSourceIphone (List<ProductsPriceInStoreService> items, ProductsStorePricesView controller) 
			{
				tableItems = items;
				this.controller = controller;

				PlaceholderImage = MaxResizeImage (Images.sinImagen, 60, 60); 
				controller.productImages.CollectionChanged += HandleCollectionChanged;
				// If either a download fails or the image we download is corrupt, ignore the problem.
				TaskScheduler.UnobservedTaskException += delegate(object sender, UnobservedTaskExceptionEventArgs e) {
					e.SetObserved ();
				};
			}