Example #1
0
        private void btnNovoCliente_Click(object sender, EventArgs e)
        {
            frmNovoCliente form = new frmNovoCliente();

            form.Novo = true;
            form.ShowDialog();
        }
        private void dgClientes_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            cliente.IdCliente = Int32.Parse(dgClientes.Rows[e.RowIndex].Cells[0].Value.ToString());
            frmNovoCliente cli = new frmNovoCliente();

            cli.Cliente = cliente;
            cli.ShowDialog();

            carregarclientes();
        }