public MoreScreenTableSource(MoreTableScreen controller) { _controller = controller; var section1 = new SectionMapping("", ""); sections.Add(section1); section1.Rows.Add(new RowItemMapping { Label = "Mine felter", GetValue = () => { return ""; }, RowSelected = () => { var fieldScreen = new LoggSetupScreen(); _controller.NavigationController.PushViewController(fieldScreen, true); }, ImageFile = "Images/Icons/Tabs/Felter.png" }); section1.Rows.Add(new RowItemMapping { Label = "Last opp data", GetValue = () => { return ""; }, RowSelected = () => { var fieldScreen = new UploadDataScreen(); _controller.NavigationController.PushViewController(fieldScreen, true); }, ImageFile = "Images/Icons/Tabs/Jaktloggen.png" }); section1.Rows.Add(new RowItemMapping { Label = "Om Jaktloggen", GetValue = () => { return ""; }, RowSelected = () => { var fieldScreen = new Forside(); _controller.NavigationController.PushViewController(fieldScreen, true); }, ImageFile = "Images/Icons/Tabs/Gevir.png" }); }
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); }