Esempio n. 1
0
        //        public ItemMasterView () : base ("ContainerMasterView", null)
        public ItemMasterView()
            : base()
        {
            primaryview = new ItemCatalogue();
            secondaryview = new ItemDetailScreen();

            primaryview.ActivateDetail += (object sender, ItemClickedEventArgs e) => secondaryview.ShowDetails (e.Item);

            secondaryview.ItemSaved += (object sender, ItemSavedEventArgs e) => primaryview.Refresh ();

            secondaryview.Derez += (object sender, DerezEventArgs e) => {
                Console.WriteLine("Derezzing...");
                secondarynav.PopToRootViewController(true);
                primaryview.Refresh();
                secondaryview.ShowDetails(e.item);
            };

            secondaryview.GotPicture += (object sender, GotPictureEventArgs e) => {
                Console.WriteLine("Derezzing...");
                //secondarynav.PopToRootViewController(true);
                primaryview.Refresh();
                secondaryview.ShowDetails(secondaryview.idc.currentItem);
            };

            secondaryview.ItemDeleted += (object sender, EventArgs e) => {
                Console.WriteLine("item deleted");
                primaryview.Refresh();
            };

            primarynav = new UINavigationController();
            primarynav.PushViewController(primaryview, false);

            secondarynav = new UINavigationController();
            secondarynav.PushViewController(secondaryview, false);

            ViewControllers = new UIViewController[] {primarynav, secondarynav};
        }
Esempio n. 2
0
        void ExtractSmall()
        {
            Item item = new Item ();
            String recomb = Recombine ();
            item.Name = recomb;
            item.Description = recomb;

            item.ImageTagId = tag.ID;
            String[] res = ExtractTagImages (tag);
            item.ThumbFileName = res [1];
            item.ImageFileName = res [0];
            ItemDetailScreen ids = new ItemDetailScreen (item);
            this.NavigationController.PushViewController (ids,true);
        }
Esempio n. 3
0
            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);
            }
Esempio n. 4
0
 void ShowItemDetails(Item item)
 {
     Console.WriteLine ("call itemdetailscreen");
     item.boxID = boks.ID;
     ItemDetailScreen itemdetail = new ItemDetailScreen (item);
     this.NavigationController.PushViewController (itemdetail, true);
     //this.NavigationController.PushViewController(itemdetail, true);
 }
Esempio n. 5
0
 protected override void Dispose(bool disposing)
 {
     ActivateDetail = null;
     table.Dispose ();
     source = null;
     backbutton = null;
     itemdetail = null;
     base.Dispose (disposing);
 }
Esempio n. 6
0
        void ShowItemDetails(Item item)
        {
            //			if(UserInterfaceIdiomIsPhone){
            Console.WriteLine ("call itemdetailscreen");

                //item.boxID = boks.ID;
                itemdetail = new ItemDetailScreen (item);
                //this.NavigationController.PresentViewController(itemdetail, true, delegate{});
                this.NavigationController.PushViewController (itemdetail, true);
                //this.NavigationController.PushViewController(itemdetail, true);
            //			}else{
            //				RaiseItemClicked(item);
            //			}
        }