partial void BtnStockDetails_TouchUpInside(UIButton sender) { try { ViewController_StockDetails controller = this.Storyboard.InstantiateViewController("ViewController_StockDetails") as ViewController_StockDetails; this.NavigationController.PushViewController(controller, true); } catch (Exception ex) { Console.Write(ex.ToString()); } }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { var index = indexPath.Row; ViewController_StockDetails controller = owner.Storyboard.InstantiateViewController("ViewController_StockDetails") as ViewController_StockDetails; controller.models = models; controller.indexPath = indexPath; owner.NavigationController.PushViewController(controller, true); tableView.DeselectRow(indexPath, true); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { //UIAlertController okAlertController = UIAlertController.Create("Row Selected", models[indexPath.Row].JewelBaseDescName , UIAlertControllerStyle.Alert); //okAlertController.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null)); //owner.PresentViewController(okAlertController, true, null); var index = indexPath.Row; ViewController_StockDetails controller = owner.Storyboard.InstantiateViewController("ViewController_StockDetails") as ViewController_StockDetails; controller.sStockNumber = models[indexPath.Row].StockNumber; controller.sCompanyCode = models[indexPath.Row].CompanyCode; //controller.indexPath = indexPath; //ViewController_StockDetails vs = new ViewController_StockDetails(); owner.NavigationController.PushViewController(controller, true); tableView.DeselectRow(indexPath, true); }