Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAprigio committed Jul 13, 2022
1 parent 9b496d2 commit b0c5138
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 10 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/ShopListPr1/v17/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion ShopListPr1/CadastroProduto.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions ShopListPr1/CadastroProduto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ private void btnSalvar_Click(object sender, EventArgs e)
}
}



private void txtQuantidade_TextChanged_1(object sender, EventArgs e)
private void txtPreco_TextChanged(object sender, EventArgs e)
{
double total = Convert.ToDouble(txtPreco.Text) * Convert.ToInt32(txtQuantidade.Text);
txtTotal.Text = total.ToString();

double total;
total = Convert.ToDouble(txtPreco.Text) * Convert.ToInt32(txtQuantidade.Text);
txtTotal.Text = total.ToString();
}


}

}
Binary file modified ShopListPr1/bin/Debug/ShopListPr1.exe
Binary file not shown.
Binary file modified ShopListPr1/bin/Debug/ShopListPr1.pdb
Binary file not shown.
6 changes: 3 additions & 3 deletions ShopListPr1/frmConsultaLista.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ private Lista produtoSelecionado()
list.idproduto = Convert.ToInt32(dgvLista.SelectedRows[0].Cells[0].Value);
list.email = dgvLista.SelectedRows[0].Cells[1].Value.ToString();
list.produto = dgvLista.SelectedRows[0].Cells[2].Value.ToString();
list.preco = Convert.ToDouble(dgvLista.SelectedRows[0].Cells[3].Value.ToString());
list.quantidade = Convert.ToInt32(dgvLista.SelectedRows[0].Cells[4].Value.ToString());
list.total = Convert.ToDouble(dgvLista.SelectedRows[0].Cells[5].Value.ToString());
list.preco = Convert.ToDouble(dgvLista.SelectedRows[0].Cells[3].Value);
list.quantidade = Convert.ToInt32(dgvLista.SelectedRows[0].Cells[4].Value);
list.total = Convert.ToDouble(dgvLista.SelectedRows[0].Cells[5].Value);

return list;

Expand Down
Binary file modified ShopListPr1/obj/Debug/ShopListPr1.csproj.GenerateResource.cache
Binary file not shown.
Binary file modified ShopListPr1/obj/Debug/ShopListPr1.exe
Binary file not shown.
Binary file modified ShopListPr1/obj/Debug/ShopListPr1.pdb
Binary file not shown.

0 comments on commit b0c5138

Please sign in to comment.