public TagDetailScreen(ImageTag tag, EditImageModeController ancestor) : base(UserInterfaceIdiomIsPhone ? "TagDetailScreen_iPhone" : "TagDetailScreen_iPad",null) { this.tag = tag; this.ancestor = ancestor; Console.WriteLine ("nib:"+this.NibName); }
public void Open(int index) { GalleryObject go = items [index]; EditImageModeController eimc = new EditImageModeController (go, this); this.NavigationController.PushViewController (eimc, true); }
protected override void Dispose(bool disposing) { tag = null; tlc = null; //backpush = null; extractButton.Dispose (); ExtractPressed = null; ancestor = null; base.Dispose (disposing); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { IndexerDictionaryItem word = words [indexPath.Row]; if (word.type == "GalleryObject") { GalleryObject go = AppDelegate.dao.GetGalleryObjectByID (word.id); if (go != null) { EditImageModeController ec = new EditImageModeController (go); ancestor.NavigationController.PushViewController (ec, true); } } if (word.type == "Item") { IList<Item> items = AppDelegate.dao.GetItemById (word.id); if (items.Count > 0) { Item it = items [0]; if (it != null) { ItemDetailScreen ic = new ItemDetailScreen (it); ancestor.NavigationController.PushViewController (ic, true); } } } if (word.type == "Container") { LagerObject lo = AppDelegate.dao.GetLagerObjectByID (word.id); if (lo != null) { ContainerDetails cd = new ContainerDetails (lo); ancestor.NavigationController.PushViewController (cd, true); } } if (word.type == "LargeObject") { LagerObject lo = AppDelegate.dao.GetLagerObjectByID (word.id); if (lo != null) { BigItemDetailScreen bids = new BigItemDetailScreen (lo); ancestor.NavigationController.PushViewController (bids, true); } } tableView.DeselectRow (indexPath, true); }