public override void DidScanBarcode(SIOverlayController overlayController, NSDictionary barcode) { this._loadPop = new LoadingOverlay(UIScreen.MainScreen.Bounds); this.presentingViewController.View.Add(this._loadPop); picker.StopScanning(); presentingViewController.DismissViewController(true, null); Task.Factory.StartNew( () => { System.Threading.Thread.Sleep(1 * 1000); } ).ContinueWith( t => { if (barcode["symbology"].ToString().Equals("QR")) { newsListView = new NewsListView(); newsListView.setStoreId(barcode["barcode"].ToString()); presentingViewController.NavigationController.PushViewController(newsListView, true); this._loadPop.Hide(); } else { pdView = new ProductStoresListView(); pdView.setProduct(barcode["barcode"].ToString(), 0); presentingViewController.NavigationController.PushViewController(pdView, true); this._loadPop.Hide(); } }, TaskScheduler.FromCurrentSynchronizationContext() ); }
public StoresTableSourceIphone(List <ProductSearchDetailService> items, ProductStoresListView controller, CLLocationManager iPhoneLocationManager, int conn) { tableItems = items; this.controller = controller; this.location = iPhoneLocationManager; this.conn = conn; PlaceholderImage = MaxResizeImage(Images.sinImagen, 60, 60); foreach (ProductSearchDetailService product in tableItems) { UIView vista = new UIView(); vistas.Add(vista); UIButton boton = new UIButton(); botones.Add(boton); UILabel distancia = new UILabel(); distancias.Add(distancia); } 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(); }; }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { pdView = new ProductStoresListView(); pdView.setProduct (tableItems [indexPath.Row].codigo,1); Console.WriteLine ("el codigo es " + tableItems [indexPath.Row].codigo); controller.NavigationController.PushViewController (pdView, true); }
public override void DidScanBarcode (SIOverlayController overlayController, NSDictionary barcode) { this._loadPop = new LoadingOverlay (UIScreen.MainScreen.Bounds); this.presentingViewController.View.Add ( this._loadPop ); picker.StopScanning (); presentingViewController.DismissViewController (true, null); Task.Factory.StartNew ( () => { System.Threading.Thread.Sleep ( 1 * 1000 ); } ).ContinueWith ( t => { if(barcode["symbology"].ToString().Equals("QR")){ newsListView = new NewsListView(); newsListView.setStoreId(barcode["barcode"].ToString()); presentingViewController.NavigationController.PushViewController(newsListView, true); this._loadPop.Hide (); }else{ pdView = new ProductStoresListView (); pdView.setProduct (barcode["barcode"].ToString(),0); presentingViewController.NavigationController.PushViewController (pdView, true); this._loadPop.Hide (); } }, TaskScheduler.FromCurrentSynchronizationContext() ); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { pdView = new ProductStoresListView(); pdView.setProduct(tableItems [indexPath.Row].codigo, 1); controller.NavigationController.PushViewController(pdView, true); }
public StoresTableSourceIphone (List<ProductSearchDetailService> items, ProductStoresListView controller, CLLocationManager iPhoneLocationManager, int conn ) { tableItems = items; this.controller=controller; this.location = iPhoneLocationManager; this.conn = conn; PlaceholderImage = MaxResizeImage (Images.sinImagen, 60, 60); foreach (ProductSearchDetailService product in tableItems){ UIView vista = new UIView (); vistas.Add (vista); UIButton boton = new UIButton (); botones.Add (boton); UILabel distancia = new UILabel (); distancias.Add (distancia); } 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 (); }; }