public void InsertVegetation(VEGETATIONCENSUS vegetationcensus, string fk) { vegetationcensus.VEGETATIONCENSUSID = Guid.NewGuid().ToString(); vegetationcensus.PLOTID = fk; _databaseHelper.InsertVegetationCensus(vegetationcensus); _databaseHelper.SetPlotSynch(vegetationcensus.PLOTID); }
public void DeleteVegetation(VEGETATIONCENSUS _table) { // _databaseHelper.DeleteVegetationCensus(ID); _table.IsDeleted = "Y"; _table.LastModified = System.DateTime.UtcNow; _databaseHelper.UpdateVegetation(_table); _databaseHelper.SetPlotSynch(_table.PLOTID); }
public VegetationCensusListViewModel(INavigation navigation, string fk) { _navigation = navigation; _vegetationCensusRepository = new VegetationCensusRepository(); _fk = fk; _vegetation = new VEGETATIONCENSUS(); AddCommand = new Command(async() => await ShowAdd(_fk)); DeleteAllCommand = new Command(async() => await DeleteAll()); ShowFilteredCommand = new Command <VEGETATIONCENSUS>(async(x) => await ShowVegetation(x)); FetchVegetation(); }
public VegetationCensusDetailsViewModel(INavigation navigation, string selectedID) { _navigation = navigation; _vegetation = new VEGETATIONCENSUS(); //_vegetation.VEGETATIONID = selectedID; _vegetationCensusRepository = new VegetationCensusRepository(); _fk = selectedID; AddCommand = new Command(async() => await Update()); DeleteCommand = new Command(async() => await Delete()); ListVeg = PickerService.VegItems().ToList(); OnAppearingCommand = new Command(() => OnAppearing()); OnDisappearingCommand = new Command(() => OnDisappearing()); FetchDetails(selectedID); }
public AddVegetationCensusViewModel(INavigation navigation, string selectedID) { _navigation = navigation; _vegetation = new VEGETATIONCENSUS(); _vegetation.PLOTID = selectedID; _vegetationCensusRepository = new VegetationCensusRepository(); _fk = selectedID; AddCommand = new Command(async() => await Update()); DeleteCommand = new Command(async() => await Delete()); ListVeg = PickerService.VegItems().ToList(); OnAppearingCommand = new Command(() => OnAppearing()); OnDisappearingCommand = new Command(() => OnDisappearing()); IsChanged = false; }
public void UpdateVegetation(VEGETATIONCENSUS vegetation) { _databaseHelper.UpdateVegetation(vegetation); _databaseHelper.SetPlotSynch(vegetation.PLOTID); }
async Task ShowVegetation(VEGETATIONCENSUS _vegetation) { // launch the form - filtered to a specific projectid await _navigation.PushAsync(new VegetationCensusDetailsPage(_vegetation.VEGETATIONCENSUSID)); }
public Task DeleteTaskAsync(VEGETATIONCENSUS item) { return(restService.DeleteAsync(tablename, item.VEGETATIONCENSUSID)); }