HI @Ahamad
please refer the following code to resolve your Doubt
int count=0;
onbutton_click event
{
if(count==0)
{
showyourFirstImages()
count=1;
}
else if(count==1)
{
showSecondImage();
count==0;
}
}
Hope this will help you.
this task can also be achived using the switch case.that will more esier for you
Thanks