private void btnNovoCarro_Click(object sender, EventArgs e) { var frmCadastro = new frmCadastroCliente(); frmCadastro.ShowDialog(); LoadCliente(); }
private void dgvCliente_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var id = Convert.ToInt32(dgvCliente.Rows[e.RowIndex].Cells[0].Value); var clienteEditar = _clienteNegocio.Selecionar(id); var form = new frmCadastroCliente(clienteEditar); form.ShowDialog(); LoadCliente(); }
private void clienteToolStripMenuItem_Click(object sender, EventArgs e) { var frm = new frmCadastroCliente(); frm.ShowDialog(); }