Esempio n. 1
0
 // --------------------------------------------------------------------
 // ISongProperty コピー
 // --------------------------------------------------------------------
 public static void CopySongProperty(ISongProperty source, ISongProperty dest)
 {
     dest.SongName   = source.SongName;
     dest.TieUpName  = source.TieUpName;
     dest.ArtistName = source.ArtistName;
     dest.MakerName  = source.MakerName;
     dest.Worker     = source.Worker;
     dest.Path       = source.Path;
 }
        // --------------------------------------------------------------------
        // 曲名セルに表示する曲情報の HTML 生成
        // --------------------------------------------------------------------
        public static String GenerateSongInfo(ISongProperty songProperty)
        {
            String cell = "<div class='search-result-song'>" + songProperty.SongName + "</div>";
            String misc = songProperty.ArtistName;

            if (!String.IsNullOrEmpty(songProperty.TieUpName))
            {
                misc += " / " + songProperty.TieUpName;
            }
            cell += "<div class='req-list-misc'>" + misc + "</div>";
            cell += "<div class='req-list-path'>" + Path.GetFileName(songProperty.Path.Replace('\\', '/')) + "</div>";
            return(cell);
        }