public override void ViewDidLoad () { base.ViewDidLoad (); MainBackButtonTmp.BackButtonClick = true; _tabController = this; _localizer = new Localizer (); CustomUIViewController tabVAC, tabILL, tabOVT, tabPOV, tabEXV; tabVAC = CreateTabViewController ("VAC", 0); tabILL = CreateTabViewController ("ILL", 1); tabOVT = CreateTabViewController ("OVT", 2); tabPOV = CreateTabViewController ("POV", 3); tabEXV = CreateTabViewController ("EXV", 4); var tabs = new CustomUIViewController[] { tabVAC, tabILL, tabOVT, tabPOV, tabEXV }; ViewControllers = tabs; SelectedViewController = tabVAC; _swipeRecognizerRight = new UISwipeGestureRecognizer (OnSwipeRight){ Direction = UISwipeGestureRecognizerDirection.Right }; _swipeRecognizerLeft = new UISwipeGestureRecognizer (OnSwipeLeft){ Direction = UISwipeGestureRecognizerDirection.Left }; View.AddGestureRecognizer (_swipeRecognizerRight); View.AddGestureRecognizer (_swipeRecognizerLeft); }
public override void ViewDidLoad () { base.ViewDidLoad (); _localizer = new Localizer (); ShowView (); }
private async void OnMenuBtnClick (object sender, EventArgs e) { Localizer localizer = new Localizer (); var modalPicker = new ModalMenuPickerViewController (ModalPickerType.Date,localizer.Localize("helpMenu"), this) { TransitioningDelegate = new ModalMenuPickerTransitionDelegate(), ModalPresentationStyle = UIModalPresentationStyle.Custom }; await PresentViewControllerAsync(modalPicker, true); }