Baka_MPlayer.Forms.UrlForm.SetControls C# (CSharp) Method

SetControls() private method

private SetControls ( bool isValid ) : void
isValid bool
return void
        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;
            }
        }