Пример #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            txtLyrics.Clear();
            string       artist    = txtArtistName.Text;
            string       songTitle = txtSongTitle.Text;
            LyricService ls        = new LyricService();
            LyricData    result    = ls.GetLyrics(artist, songTitle);

            if (result != null)
            {
                txtLyrics.Text = result.Lyrics;
            }
            else
            {
                txtLyrics.Text = "song not found";
            }
        }
Пример #2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            txtLyrics.Clear();
            string       artist    = txtArtistName.Text;
            string       songTitle = txtSongTitle.Text;
            LyricService LS        = new LyricService();
            SongLyrics   result    = LS.GetLyrics(artist, songTitle);

            if (result != null)
            {
                txtLyrics.Text = result.Lyrics;
            }
            else
            {
                MessageBox.Show("No lyrics found");
            }
        }