コード例 #1
0
 public ViewSinglePageModel(MyLocation location)
 {
     System.Diagnostics.Debug.WriteLine ("ViewSinglePageModel::Hello");
     Location = location;
     Pin = new ObservableCollection<MyLocation>(){
         location
     };
 }
コード例 #2
0
 public int SaveLocation(MyLocation loc)
 {
     lock (locker) {
         if (InDatabase(loc.Address)) {
             System.Diagnostics.Debug.WriteLine ("LocationDatabase::Place already in db, not saving.");
             return loc.ID;
         } else {
             System.Diagnostics.Debug.WriteLine ("LocationDatabase::Saved to db.");
             return database.Insert (loc);
         }
     }
 }
コード例 #3
0
 public LocationCellViewModel(MyLocation loc)
 {
     _location = loc;
     _inDatabase = App.Database.InDatabase (_location.Address);
 }