예제 #1
0
 public LocationListItemVM(Location location)
 {
     this.location = location;
     DeleteCommand = new Command(() => {
         GeofenceSetup.RemoveMonitor(location);
         LocationDB.DeleteItem(location);
         RaiseRemoved();
     }
                                 );
     EditCommand = new Command(() =>
     {
         RaiseEdit();
     });
 }
예제 #2
0
 void Save()
 {
     LocationDB.SaveItem(Loc);
     GeofenceSetup.Monitor(Loc);
     saveCB?.Invoke();
 }