Esempio n. 1
0
		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);
		}
Esempio n. 2
0
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			_localizer = new Localizer ();
			ShowView ();
		}
Esempio n. 3
0
		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);
		}