예제 #1
0
        private void btnNovoCarro_Click(object sender, EventArgs e)
        {
            var frmCadastro = new frmCadastroCliente();

            frmCadastro.ShowDialog();
            LoadCliente();
        }
예제 #2
0
        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();
        }
예제 #3
0
        private void clienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new frmCadastroCliente();

            frm.ShowDialog();
        }