private void dgvClientes_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var tabela = (List <Customer>)dgvClientes.DataSource; var frm = new frmClienteEditar(); frm.CarregarCliente(tabela[e.RowIndex]); frm.Show(); }
private void brn_Novo_Click(object sender, EventArgs e) { frmClienteEditar novo = new frmClienteEditar(); novo.Show(); }