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

OpenFile() private method

private OpenFile ( ) : void
return void
        private void OpenFile()
        {
            if (Url.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
            {
                MessageBox.Show("mpv cannot play HTTPS urls. Try the url's HTTP equivalent.",
                    "Cannot Open URL", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            if (Url.Equals(fileInfo.Url, StringComparison.OrdinalIgnoreCase))
            {
                if (MessageBox.Show(string.Format("\"{0}\" is already playing.\nDo you still want to open this file?", fileInfo.FullFileName),
                    "Already Playing", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
                {
                    this.DialogResult = DialogResult.OK;
                    this.Close();
                }
                return;
            }

            this.DialogResult = DialogResult.OK;
            this.Close();
        }