public App() { Database = new ScorecardDatabase (); AppSettings = null; var startPage = new StartPage(); var rootPage = new NavigationPage(startPage); App.Navigation = rootPage.Navigation; MainPage = rootPage; //MainPage = new NavigationPage (new StartPage ()); }
public int SaveSettings(Settings item) { lock (locker) { if (item.ID != 0) { database.Update(item); return item.ID; } else { return database.Insert(item); } } }