Muss in etwa so aussehen:
switch(listitem) // This is far more efficient than using an if-elseif-else structure
{
case 0: // Listitems start with 0, not 1
{
// What should happen when they click on the first item?
}
case 1:
{
// And the second item?
}
case 2:
{
// We can keep going on here ;)
}
// Add the rest of your listitems for dialog 1 here
}