public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { UIStoryboard storyboard = UIStoryboard.FromName("Main", null); if (dic[tableSection[indexPath.Section]][indexPath.Row] == "Direcciones") { InfoDireccViewController vcInstance = (InfoDireccViewController)storyboard.InstantiateViewController("InfoDireccViewController"); vcInstance.distributor = distributor; vcInstance.option = 2; vcInstance.titleOne = "Domicilio Fiscal"; vcInstance.titleTwo = "Domicilio Comercial"; accountViewController.NavigationController.PushViewController(vcInstance, true); } if (dic[tableSection[indexPath.Section]][indexPath.Row] == "Aviso de Privacidad") { UIApplication.SharedApplication.OpenUrl(new NSUrl("https://www.contpaqi.com/aviso-de-privacidad")); } if (dic[tableSection[indexPath.Section]][indexPath.Row] == "Nosotros") { UIApplication.SharedApplication.OpenUrl(new NSUrl("https://www.contpaqi.com/nosotros")); } if (dic[tableSection[indexPath.Section]][indexPath.Row] == "Información del cliente") { InfoDireccViewController vcInstance = (InfoDireccViewController)storyboard.InstantiateViewController("InfoDireccViewController"); vcInstance.distributor = distributor; vcInstance.option = 1; vcInstance.titleOne = "Datos personales"; vcInstance.titleTwo = "Datos de la compañía"; accountViewController.NavigationController.PushViewController(vcInstance, true); } if (dic[tableSection[indexPath.Section]][indexPath.Row] == "Contáctanos al 800 317 1111") { NSUrl url = new NSUrl("tel:8003171111"); if (UIApplication.SharedApplication.CanOpenUrl(url)) { UIApplication.SharedApplication.OpenUrl(url); } else { Console.WriteLine("Cannot open url: {0}", url.AbsoluteString); } } if (dic[tableSection[indexPath.Section]][indexPath.Row] == "Órdenes") { OrdersViewController vcInstance = (OrdersViewController)storyboard.InstantiateViewController("OrdersViewController"); accountViewController.NavigationController.PushViewController(vcInstance, true); } if (dic[tableSection[indexPath.Section]][indexPath.Row] == "Productos Favoritos") { FavoritesViewController vcInstance = (FavoritesViewController)storyboard.InstantiateViewController("FavoritesViewController"); accountViewController.NavigationController.PushViewController(vcInstance, true); } if (dic[tableSection[indexPath.Section]][indexPath.Row] == "Cerrar Sesión") { AppSecurity.IsLogged = false; AppSecurity.distributorLogged = null; accountViewController.CheckAuthentication(); } }
public FavoriteViewSource(List <Schemas.Product.ProductInfo> _rows, FavoritesViewController favoritesViewController) { this.rows = _rows; this.favoritesViewController = favoritesViewController; }