If EsperarBoton=4 Then
cont=Fotoss+1
Else
If EsperarBoton=5 Then
avance=100/(elige1+elige2)
Activity.LoadLayout("barraprogreso")
ProgressBar1.Progress=ProgressBar1.Progress+avance
If elige1>0 Then
For i = 0 To Lista1.Size - 1
If d8x10(i)=1 Then
SMTP.To.Add("pandarecibe@gmail.com")
SMTP.Subject = "Fotos de elegidas del cliente : xxxxxxxx"
SMTP.Body = "8x10"
SMTP.AddAttachment(File.DirAssets, "p" & (i+1) &".jpg")
SMTP.Send
Sleep(3000)
ProgressBar1.Progress=ProgressBar1.Progress+avance
End If
Next
End If
End If
If elige2>0 Then
For i = 0 To Lista2.Size - 1
If d12x18(i)=1 Then
SMTP.To.Add("pandarecibe@gmail.com")
SMTP.Subject = "Fotos de elegidas del cliente : xxxxxxxx"
SMTP.Body = "12x18"
SMTP.AddAttachment(File.DirAssets, "p" & (i+1) &".jpg")
SMTP.Send
Sleep(3000)
ProgressBar1.Progress=ProgressBar1.Progress+avance
End If
Next
End If
ToastMessageShow("Fotos enviadas",False)
File.Delete(File.DirDefaultExternal,"correo enviado.txt")
File.WriteString(File.DirDefaultExternal,"correo enviado.txt","1")
cont=Fotoss+1
principal=0
End If