private void SetControls(bool isValid)
{
if (isValid)
{
string fileType = Path.GetExtension(Url).ToUpperInvariant();
fileTypeLabel.Text = string.IsNullOrEmpty(fileType) ? "?" : fileType;
checkPicbox.Image = Properties.Resources.exists;
okButton.Enabled = true;
}
else
{
fileTypeLabel.Text = "*.*";
checkPicbox.Image = Properties.Resources.not_exists;
okButton.Enabled = false;
}
}