Ejemplo n.º 1
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            UIAlertController okAlertController = UIAlertController.Create("Row " + indexPath + " selected", _products[indexPath.Row].ProductName, UIAlertControllerStyle.Alert);

            okAlertController.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null));

            string productName  = ProductList.GetProductList[indexPath.Row].ProductName;
            string productBrand = ProductList.GetProductList[indexPath.Row].ProductBrand;

            ProductDetailView _detail = new ProductDetailView(productName, productBrand);

            //var ProductData = NSUserDefaults.StandardUserDefaults;
            //ProductData.SetString(productName,"ProductName");

            //var ProductData = NSUserDefaults.StandardUserDefaults;
            //UserData.SetString(productName, "ProductName");

            //_owner.InvokeDetail();
            _owner.PresentViewController(_detail, true, null);

            tableView.DeselectRow(indexPath, true);
        }