protected void gridDados_RowCommand(object sender, GridViewCommandEventArgs e) { var cliente = new ClienteCrud(); var objeCliente = new ClienteModel(); var id = Convert.ToInt32(e.CommandArgument); hdn.Value = id.ToString(); switch (e.CommandName) { case "Excluir": cliente.Delete(id); gridDados.DataBind(); break; case "Editar": CarregarModal(id); ModalUpdate.Show(); break; default: break; } }
private async void ListView0_ItemTapped(object sender, ItemTappedEventArgs e) { await ModalUpdate.Show(); if (FurnitureUpdate == null) { viewModel.DateNow = DateTime.Now; viewModel.PromotionFromDate = DateTime.Now; viewModel.PromotionToDate = DateTime.Now; } FurnitureUpdate = e.Item as FurnitureProduct; }