void OnDelete(object sender, EventArgs e) { RelatorioInicial selectedItem = (RelatorioInicial)sender.GetType().GetProperty("CommandParameter").GetValue(sender, null); Puma.ModelosBanco.Relatorios relatorio = database.GetRelatorio(selectedItem.Id); database.DeleteRelatorio(relatorio); this.AtualizaLista(); }
public void PressCriarRelatorio(object sender, EventArgs r) { Puma.ModelosBanco.Relatorios relatorio = new Puma.ModelosBanco.Relatorios(); database.CriarRelatorio(relatorio); Navigation.PushAsync(new PaginaRelatorio(relatorio.Id, database)); }