コード例 #1
0
        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 ());
        }
コード例 #2
0
 public int SaveSettings(Settings item)
 {
     lock (locker) {
         if (item.ID != 0) {
             database.Update(item);
             return item.ID;
         } else {
             return database.Insert(item);
         }
     }
 }