Esempio n. 1
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            if (this.controller.reloading == true)
            {
                return;
            }

            var item = list[indexPath.Row];

            if (item.poi_id == null)
            {
                return;
            }

            if (item.poi_id == "0")
            {
                return;
            }

            detail = new UiDetailScreen();
            detail.controllerpastPos = this.controller;
            detail.dataPos           = item;
            detail.positionPos       = indexPath.Row;
            this.controller.NavigationController.PushViewController(detail, true);
        }
Esempio n. 2
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            if (this.controller.reloading == true)
            {
                return;
            }

            var item = list[indexPath.Row];

            if (item.parent == "POS" || item.isPresentAsCategory == true)
            {
                var lstpos = new Mainiportogruaropos().getAllPost();

                if (lstpos != null)
                {
                    List <iportogruaropos> auxPos = (from c in lstpos
                                                     orderby c.title ascending
                                                     where
                                                     c.poi_id.ToLower() == item.cat_id
                                                     select c).ToList();
                    if (auxPos != null)
                    {
                        if (auxPos.Count > 0)
                        {
                            var itempos = auxPos[0];

                            if (itempos.poi_id == null)
                            {
                                return;
                            }

                            if (itempos.poi_id == "0")
                            {
                                return;
                            }

                            var detail = new UiDetailScreen();
                            //detail.controllerPast = this.controller;
                            detail.dataPos     = itempos;
                            detail.positionPos = indexPath.Row;
                            this.controller.NavigationController.PushViewController(detail, true);
                        }
                    }
                }
                return;
            }

            if (item.parent != "0")
            {
                if (subCategorys.ishasSong(item))
                {
                    this.controller.NavigationController.PushViewController(new UiCategoryListController()
                    {
                        cat_id = item.cat_id, Title = System.Web.HttpUtility.HtmlDecode(item.name)
                    }, true);
                }
                else
                {
                    detail        = new UiPosList();
                    detail.Title  = System.Web.HttpUtility.HtmlDecode(item.name);
                    detail.cat_id = item.cat_id;
                    this.controller.NavigationController.PushViewController(detail, true);
                }
            }
            else
            {
                if (item.cat_id == "0")
                {
                    return;
                }



                this.controller.NavigationController.PushViewController(new UiCategoryListController()
                {
                    cat_id = item.cat_id, Title = System.Web.HttpUtility.HtmlDecode(item.name)
                }, true);
            }
        }
Esempio n. 3
0
        /*
         * public override float GetHeightForRow (UITableView tableView, NSIndexPath indexPath)
         * {
         *      return 60;
         * }
         */

        public sourceMoreInfo(UiDetailScreen controller, iportogruaropos _item)
        {
            item = _item;
            this.detailController = controller;
        }
Esempio n. 4
0
 /*
  * public UiGaleryScreen () : base ("UiGaleryScreen", null)
  * {
  * }
  */
 public UiGaleryScreen(UiDetailScreen _controller) : base(UserInterfaceIdiomIsPhone ? "UiGaleryScreenIpad" : "UiGaleryScreenIpad", null)
 {
     controller = _controller;
 }