Exemplo n.º 1
0
		public DogsTableSource(DogsScreen controller)
		{
			_controller = controller;
		}
Exemplo n.º 2
0
		public MoreScreenTableSource(MoreTableScreen controller)
		{
			_controller = controller;
			var section1 = new SectionMapping("", "");
			var section2 = new SectionMapping("", "");
			var section3 = new SectionMapping("", "");

			
			section1.Rows.Add(new RowItemMapping {
				Label = Utils.Translate("hunters"),
				GetValue = () => {
					return Utils.Translate("jegere.edit");
				},
				RowSelected = () => {
					var fieldScreen = new JegereScreen(new List<int>(), screen => { });
					_controller.NavigationController.PushViewController(fieldScreen, true);
				},
				ImageFile = "Images/Icons/Tabs/Jegere.png"
			});
			
			section1.Rows.Add(new RowItemMapping {
				Label = Utils.Translate("dogs"),
				GetValue = () => {
					return Utils.Translate("dogs.edit");
				},
				RowSelected = () => {
					var fieldScreen = new DogsScreen(new List<int>(), screen => { });
					_controller.NavigationController.PushViewController(fieldScreen, true);
				},
				ImageFile = "Images/Icons/Tabs/dog-paw.png"
			});

			section2.Rows.Add(new RowItemMapping {
				Label = "Last opp data",
				GetValue = () => {
					return "Under utvikling. Kun for testing.";
				},
				RowSelected = () => {
					var fieldScreen = new WebStorageScreen(); 
					_controller.NavigationController.PushViewController(fieldScreen, true);
				},
				ImageFile = "Images/Icons/Tabs/Jaktloggen.png"
			});


			if(JaktLoggApp.instance.CurrentLanguage == Language.Norwegian) 
			{
				section2.Rows.Add(new RowItemMapping {
					Label = Utils.Translate("aboutjaktloggen"),
					GetValue = () => {
						return Utils.Translate("give_rating");
					},
					RowSelected = () => {
						var fieldScreen = new Forside(); 
						_controller.NavigationController.PushViewController(fieldScreen, true);
					},
					ImageFile = "Images/Icons/Tabs/Gevir.png"
				});
			}
			/*
			section2.Rows.Add(new RowItemMapping {
				Label = "Aktuelt",
				GetValue = () => {
					return "Oppdateringer og aktuelt";
				},
				RowSelected = () => {
					var fieldScreen = new FeedbackScreen("http://www.jaktloggen.no/aktuelt/", "Aktuelt"); 
					_controller.NavigationController.PushViewController(fieldScreen, true);
				},
				ImageFile = "Images/Icons/Tabs/Gevir.png"
			});
			*/
			sections.Add(section1);
			sections.Add(section2);
			//sections.Add(section3);
		}