예제 #1
0
        public void ShowBoxItemDetails(LagerObject box)
        {
            //			if(UserInterfaceIdiomIsPhone){
                Console.WriteLine ("showBoxItemDetails()");
                boxdetail = new ContainerDetails (box);
                this.NavigationController.PushViewController (boxdetail, true);
            //			}else{
            //				RaiseContainerClicked(box);
            //			}

            if (boxdetail != null) {
                boxdetail.LagerObjectSaved += (object sender, LagerObjectSavedEventArgs e) => PopulateTable ();
            }
        }
예제 #2
0
        //        public ContainerMasterView () : base ("ContainerMasterView", null)
        public ContainerMasterView()
            : base()
        {
            primaryview = new ContainerScreen();
                secondaryview = new ContainerDetails();

                primaryview.ActivateDetail += (object sender, ContainerClickedEventArgs e) => secondaryview.ShowDetails (e.container);

                secondaryview.LagerObjectSaved += delegate(object sender, LagerObjectSavedEventArgs e) {
                    primaryview.Refresh();
                };

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

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

                ViewControllers = new UIViewController[] {primarynav, secondarynav};
        }
예제 #3
0
        void ExtractContainer()
        {
            LagerObject lo = new LagerObject ();
            String recomb = Recombine ();
            lo.Name = recomb;
            lo.Description = recomb;
            lo.type = recomb;

            lo.ImageTagId = tag.ID;
            string[] res = ExtractTagImages (tag);
            lo.thumbFileName = res [1];
            lo.imageFileName = res [0];
            lo.isContainer = "true";
            lo.isLargeObject = "false";
            ContainerDetails cd = new ContainerDetails (lo);
            this.NavigationController.PushViewController (cd, true);
        }
예제 #4
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);
            }