示例#1
0
        private void skipOrRename(string artist, string album, string track, int playCount)
        {
            SearchSkip dlg = new SearchSkip(artist, album, track);

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                if ((artist != dlg.userArtist) || (album != dlg.userAlbum))
                {
                    string key   = "artist=" + artist + "&album=" + album;
                    string value = "artist=" + dlg.userArtist + "&album=" + dlg.userAlbum;
                    translator.Add(key, value);
                }
                incrementTrackPlaycount(dlg.userTrack, dlg.userAlbum, dlg.userArtist, playCount);
            }
        }
示例#2
0
 private void skipOrRename(string artist, string album, string track, int playCount)
 {
     SearchSkip dlg = new SearchSkip(artist, album, track);
     if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         if ((artist != dlg.userArtist) || (album != dlg.userAlbum))
         {
             string key = "artist=" + artist + "&album=" + album;
             string value = "artist=" + dlg.userArtist + "&album=" + dlg.userAlbum;
             translator.Add(key, value);
         }
         incrementTrackPlaycount(dlg.userTrack, dlg.userAlbum, dlg.userArtist, playCount);
     }
 }