Exemple #1
0
        private void BtnAlterar_Click(object sender, EventArgs e)
        {
            string valor = InputBox("Item de Comanda", "Informe a nova quantidade:");

            if (valor != null)
            {
                int             qtde = Convert.ToInt32(valor);
                DataGridViewRow row  = dgvItens.SelectedRows[0];
                int             item = Convert.ToInt32(row.Cells["Item"].Value);
                comandaCorrente.AtualizarItem(item, qtde);
                AtualizarTabela();
            }
        }