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