public void CarregaPictures() { this.FotosItem = database.GetFotosItems(this.itemSubItem); for (var i = 0; i < this.FotosItem.Count; i++) { Grid grid = (Grid)this.FindByName <Grid>(this.FotosItem[i].Name); this.AdicionarFotoCarregada(grid, FotosItem[i].Base64); } }
public List <Barrilete> MontaBarrilete() { List <Barrilete> list = new List <Barrilete>(); Puma.ModelosBanco.Subitemsetor subSetor = database.GetSubItemSetor(this.relatorio.Id, 3, 2); if (subSetor != null) { List <Puma.ModelosBanco.ItemSubItem> itemSubItems = database.GetListItemsSubItem(subSetor); for (var i = 0; i < itemSubItems.Count; i++) { // id = 1 List <Puma.ModelosBanco.DetalhesItem> detalhes = database.GetDetalhesItems(itemSubItems[i]); List <Puma.ModelosBanco.FotosItem> fotos = database.GetFotosItems(itemSubItems[i]); list.Add(this.CriarBarrilete(detalhes, fotos)); } } return(list); }