public JaktTableSource(JaktsTableScreen controller) { _controller = controller; JaktList = JaktLoggApp.instance.JaktList; var datelist = (from item in JaktList select item.DatoFra.Year).ToList(); foreach(var d in datelist.Distinct()){ headers.Add(new HeaderTableSection(d.ToString())); } }
public override void ViewDidLoad () { LoadingView.Show(Utils.Translate("dataloadmessage")); JaktLoggApp.instance.InitializeAllData(() => { InvokeOnMainThread(() => { LoadingView.Hide(); var jaktTableScreen = new JaktsTableScreen(); PushViewController(jaktTableScreen, false); }); }); base.ViewDidLoad (); }