public void SetIcon(Item item, ImageView view, Activity activity) { var path = GetIconPath(item); if (File.Exists(path)) { var icon = BitmapFactory.DecodeFile(path); if (view != null & activity != null) { activity.RunOnUiThread( () => view.SetImageBitmap(BitmapFactory.DecodeFile(path))); } } _iconsToLoad.Enqueue ( new IconToLoad { Item = item, ImageView = view, Activity = activity } ); lock (_backgroundWorker) { if (!_backgroundWorker.IsBusy) { _backgroundWorker.RunWorkerAsync(); } } }
public PriceListingFragment(Item item, string kind, string qtyName) { _item = item; _kind = kind; _qtyName = qtyName; _itemManager = TinyIoCContainer.Current.Resolve<IItemManager>(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); _itemManager = TinyIoCContainer.Current.Resolve<IItemManager>(); var itemId = (int) Intent.GetLongExtra("ItemId", 0); _item = _itemManager.GetItem(itemId); CreateTabs(); }
private string GetIconPath(Item item) { return Path.Combine(_iconDirectory, Path.GetFileName(item.IconUrl)); }
private void SetPriceListings(Item item) { }