Exemplo n.º 1
0
        public void ShowDetails(Item item)
        {
            this.item = item;
            idc = new ItemDetailsController (item, this);
            //idc = new ItemDetailsController (item, this.NavigationController, this);
            innerScroll = new UIScrollView (View.Bounds);
            innerScroll.ContentSize = idc.GetContentsize ();
            innerScroll.AddSubview (idc.View);
            innerScroll.UserInteractionEnabled = true;
            idc.ShowDetails (item);
            View.AddSubview (innerScroll);

            //			HelpScreenInner innerViewController = new HelpScreenInner ();
            //			UIScrollView innerScroll = new UIScrollView (View.Bounds);
            //			innerScroll.ContentSize = innerViewController.GetContentSize ();
            //			innerScroll.AddSubview (innerViewController.View);
            //			innerScroll.UserInteractionEnabled = true;
            //			View.AddSubview (innerScroll);

            idc.ItemSaved += (object sender, ItemSavedEventArgs e) => {
                var handler = this.ItemSaved;
                if(handler != null){
                    handler(sender, e);
                }
            };

            //			idc.Derez += (object sender, DerezEventArgs e) => {
            //				var handler = this.Derez;
            //				if(handler != null){
            //					handler(sender,e);
            //				}
            //			};

            idc.ItemDeleted += (object sender, EventArgs e) => {
                var handler = this.ItemDeleted;
                if(handler != null){
                    handler(sender,e);
                }
            };
        }
Exemplo n.º 2
0
        public ItemDetailScreen()
        {
            idc = new ItemDetailsController (this);

            //idc = new ItemDetailsController (this.NavigationController,this);
        }