Je reçois un code inaccessible détecté pour la seconde instruction if. Pouvez-vous s'il vous plaît laissez-moi savoir ce qui a mal tourné?code inaccessible détecté
private bool ValidateSettings()
{
if (chkDownload.Checked && String.IsNullOrEmpty(txtAppName.Text))
{
divAppDownloadError.Visible=true;
return false;
}
else
{
return true;
}
if (chkpplaORfmp.Checked && String.IsNullOrEmpty(txtfmpORppla.Text))
{
divXPAAPPDownloadError.Visible = true;
return false;
}
else
{
return true;
}
}
Mais beaucoup plus désordonné qu'il doit être. –