Beispiel #1
0
        private void btnInserir_Click(object sender, EventArgs e)
        {
            FrmItemVenda frmItemVenda = new FrmItemVenda(vendaAtiva.Id);

            frmItemVenda.ShowDialog();
            PreencherDataGridViewItens();
        }
Beispiel #2
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            IRepositorio <ItemVenda> repositorioItensVenda = new RepositorioItemVenda();
            FrmItemVenda             frmItemVenda          = new FrmItemVenda(repositorioItensVenda.SelecionarPorId((int)dgvItens.SelectedRows[0].Cells[0].Value));

            frmItemVenda.ShowDialog();
            PreencherDataGridViewItens();
        }