private void HandleButtons() { UserButton.TouchUpInside += (sender, e) => { UIStoryboard storyboard = UIStoryboard.FromName("Main", null); AccountViewController vcInstance = (AccountViewController)storyboard.InstantiateViewController("AccountViewController"); this.NavigationController.PushViewController(vcInstance, true); }; CancelButton.TouchUpInside += (sender, e) => { hideSearch(); }; SearchTextField.WeakDelegate = this; SearchTextField.AddTarget(ValueChanged, UIControlEvent.EditingChanged); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Obtenemos los productos del servicio de busqueda var resultSearch = AppRuntime.MarketData.SearchProducts(); if (resultSearch.ServiceResponseStatus.IsSuccess) { listSearch = resultSearch.SearchResult.ToList(); } btnClearSearch.TouchUpInside -= ClickButtonDeleteSearch; btnClearSearch.TouchUpInside += ClickButtonDeleteSearch; SearchTextField.AddTarget(OpenSearchView, UIControlEvent.TouchDown); }
public override void ViewDidLoad() { base.ViewDidLoad(); NSUserDefaults.StandardUserDefaults.SetString("", "OrderStatus"); NSUserDefaults.StandardUserDefaults.SetString("", "OrderPeriod"); NSUserDefaults.StandardUserDefaults.SetString("", "InitDate"); NSUserDefaults.StandardUserDefaults.SetString("", "EndDate"); LoadOrders(TypeFilter); RefreshControl = new UIRefreshControl(); RefreshControl.ValueChanged += RefreshControl_ValueChanged; OrdersCollectionView.AddSubview(RefreshControl); SearchTextField.AddTarget(ValueChanged, UIControlEvent.EditingChanged); this.NavigationItem.RightBarButtonItem = new UIBarButtonItem(title: "Mostrar", style: UIBarButtonItemStyle.Plain, target: this, action: new Selector("ShowSheetAlert:")); BorderNoOrdersView.Layer.BorderColor = UIColor.DarkGray.CGColor; BorderNoOrdersView.Layer.BorderWidth = 2; BorderNoOrdersView.Layer.CornerRadius = 8; }