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

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

            frm.ShowDialog();
        }