Ejemplo n.º 1
0
		public override void ViewDidLoad ()
		{
			Arter = JaktLoggApp.instance.ArtList.Where(a => JaktLoggApp.instance.SelectedArtIds.Contains(a.ID)).ToList<Art>();
			
			var leftBtn = new UIBarButtonItem("Avbryt", UIBarButtonItemStyle.Plain, CancelClicked);
			NavigationItem.LeftBarButtonItem = leftBtn;
			
			var rightBtn = new UIBarButtonItem("Ferdig", UIBarButtonItemStyle.Done, DoneClicked);
			NavigationItem.RightBarButtonItem = rightBtn;
			
			pickerViewModel = new FieldLoggCatchPickerViewModel(this);
			pickerView.Source = pickerViewModel;
			
			base.ViewDidLoad ();
			
		}
Ejemplo n.º 2
0
		public override void ViewDidLoad ()
		{
			lblChooseSpecies.Text = Utils.Translate("choosespecies");
			lblHits.Text = Utils.Translate("hits");
			lblSeen.Text = Utils.Translate("seen");
			lblShots.Text = Utils.Translate("shots");
			lblInfo.Hidden = JaktLoggApp.instance.CurrentLanguage == Language.Norwegian;

			Arter = JaktLoggApp.instance.ArtList.Where(a => JaktLoggApp.instance.SelectedArtIds.Contains(a.ID)).ToList<Art>();
			
			var leftBtn = new UIBarButtonItem(Utils.Translate("cancel"), UIBarButtonItemStyle.Plain, CancelClicked);
			NavigationItem.LeftBarButtonItem = leftBtn;
			
			var rightBtn = new UIBarButtonItem(Utils.Translate("done"), UIBarButtonItemStyle.Done, DoneClicked);
			NavigationItem.RightBarButtonItem = rightBtn;
			
			pickerViewModel = new FieldLoggCatchPickerViewModel(this);
			pickerView.Source = pickerViewModel;
			
			base.ViewDidLoad ();
			
		}