private void btnNuevo_Click(object sender, EventArgs e) { AddEnvio AV = new AddEnvio(); AV.ShowDialog(); actualizarTabla(); }
private void paginacionTabla_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex != -1) { DataGridViewRow renglon = paginacionTabla.Rows[e.RowIndex]; string sql_where = " where idenvio=@id"; List <string> parametros = new List <string>(); List <object> valores = new List <object>(); parametros.Add("@id"); valores.Add(renglon.Cells["ID"].Value); Modelo.Envios env = enviosDAO.ConsultaGeneral(sql_where, parametros, valores)[0]; AddEnvio envgui = new AddEnvio(env); envgui.ShowDialog(); actualizarTabla(); } else { Mensajes.Error("Selecciona un registro"); } }