Beispiel #1
0
		public void HandleButtonFilterClicked (object sender, EventArgs EventArgs)
		{
			var pickerScreen = new FooterStatsArter(screen => 
            {
				SelectedJeger = screen.SelectedJeger;
				SelectedDog = screen.SelectedDog;
				_tableSource.ItemList = GetRanking();
				TableView.ReloadData();
				
				var labelText = Utils.Translate("showingcountfor");
				if(SelectedJeger == null && SelectedDog == null)
					labelText += Utils.Translate("all_hunters_dogs");
				
				if(SelectedJeger != null)
					labelText += SelectedJeger.Fornavn;
				
				if(SelectedDog != null && SelectedJeger != null)
					labelText += "/";
				
				if(SelectedDog != null)
					labelText += SelectedDog.Navn;
				
				headerStatsFilter.SetFilterLabel(labelText);
				
			},SelectedJeger, SelectedDog);
			
			pickerScreen.ModalTransitionStyle = UIModalTransitionStyle.PartialCurl;
			PresentViewController(pickerScreen, true, null);
		}
Beispiel #2
0
		void HandleRightButtonClicked (object sender, EventArgs EventArgs)
		{
			var pickerScreen = new FooterStatsArter(screen => 
            {
				SelectedJeger = screen.SelectedJeger;
				_tableSource.ItemList = GetRanking();
				TableView.ReloadData();
				
				
				_rightButton.Title = SelectedJeger == null ? "Alle jegere" : SelectedJeger.Fornavn;
			},SelectedJeger);
			
			pickerScreen.ModalTransitionStyle = UIModalTransitionStyle.PartialCurl;
			this.PresentModalViewController(pickerScreen, true);
		}
		public FooterStatsArterPickerViewModel(FooterStatsArter controller) : base()
		{
			_controller = controller;
			
		}