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