public void InsertSmallTree(SMALLTREE smalltree, string fk) { smalltree.SMALLTREEID = Guid.NewGuid().ToString(); smalltree.PLOTID = fk; _databaseHelper.InsertSmallTree(smalltree); _databaseHelper.SetPlotSynch(smalltree.PLOTID); }
public void DeleteSmallTree(SMALLTREE _table) { // _databaseHelper.DeleteSmallTree(ID); _table.LastModified = System.DateTime.UtcNow; _table.IsDeleted = "Y"; _databaseHelper.UpdateSmallTree(_table); _databaseHelper.SetPlotSynch(_table.PLOTID); }
// Insert new to DB public void InsertSmallTree(SMALLTREE smalltree) { try { sqliteconnection.Insert(smalltree); } catch (Exception ex) { logger.LogWrite(ex.Message); } }
public SmallTreeListViewModel(INavigation navigation, string fk) { _navigation = navigation; _smallTreeRepository = new SmallTreeRepository(); _fk = fk; _smallTree = new SMALLTREE(); AddCommand = new Command(async() => await ShowAdd(_fk)); DeleteAllCommand = new Command(async() => await DeleteAll()); ShowFilteredCommand = new Command <SMALLTREE>(async(x) => await ShowSmallTree(x)); FetchSmallTree(); }
public AddSmallTreeViewModel(INavigation navigation, string selectedID) { _navigation = navigation; _smallTree = new SMALLTREE(); _smallTree.SMALLTREEID = selectedID; _smallTreeRepository = new SmallTreeRepository(); _fk = selectedID; AddCommand = new Command(async() => await Update()); DeleteCommand = new Command(async() => await Delete()); ListSpecies = PickerService.SpeciesItems().ToList().OrderBy(c => c.NAME).ToList(); }
public AddSmallTreeViewModel(INavigation navigation, string selectedID) { _navigation = navigation; _smallTree = new SMALLTREE(); _smallTree.PLOTID = selectedID; _smallTreeRepository = new SmallTreeRepository(); _fk = selectedID; AddCommand = new Command(async() => await Update()); DeleteCommand = new Command(async() => await Delete()); ListSpecies = PickerService.SmallTreeSpeciesItems().ToList().OrderBy(c => c.ID).ToList(); IsChanged = false; OnAppearingCommand = new Command(() => OnAppearing()); OnDisappearingCommand = new Command(() => OnDisappearing()); }
// Update Tree Data public void UpdateSmallTree(SMALLTREE smalltree) { sqliteconnection.Update(smalltree); }
public void UpdateSmallTree(SMALLTREE smalltree) { _databaseHelper.UpdateSmallTree(smalltree); _databaseHelper.SetPlotSynch(smalltree.PLOTID); }
async Task ShowSmallTree(SMALLTREE _smallTree) { // launch the form - filtered to a specific projectid await _navigation.PushAsync(new SmallTreeDetailsPage(_smallTree.SMALLTREEID )); }
public void UpdateSmallTree(SMALLTREE smalltree) { _databaseHelper.UpdateSmallTree(smalltree); }
public Task DeleteTaskAsync(SMALLTREE item) { return(restService.DeleteAsync(tablename, item.SMALLTREEID)); }