private void BtnNovo_Click(object sender, EventArgs e) { var frm = new FrmCargo(); frm.ShowDialog(); ListarTodos(); }
private void DgvCargos_CellContentClick(object sender, DataGridViewCellEventArgs e) { int id = int.Parse(dgvCargos.Rows[e.RowIndex].Cells[0].Value.ToString()); var frm = new FrmCargo(id); frm.ShowDialog(); ListarTodos(); }