예제 #1
0
        private void BtnNovo_Click(object sender, EventArgs e)
        {
            var frm = new FrmCargo();

            frm.ShowDialog();
            ListarTodos();
        }
예제 #2
0
        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();
        }