I tried this code and it does not work for me
private void lstIngreso_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
index = lstIngreso.SelectedIndex;
valor[index] = Convert.ToDecimal(lstIngreso.SelectedItem);
cantidad[index] = contador++;
foreach (int i in cantidad)
{
contador = contador++;
}
Accountant I have declared it globally like this:
int contador=0;
the listbox looks like this:
0.10
0.20
0.30
0.50
1
2
The idea is that when I click on 0.10 for example I have to send to an arrangement how many coins of 0.10 cents or how many of .20 I chose. Now tell me but not separate for each value.
Thanks