Пример #1
0
 private void GenerateScore()
 {
     if (TrackDetail != null && SelectedLevel != null)
     {
         if (LevelOnlySelected)
         {
             Score = RockSmithImporter.GetScoreForExactDifficultyLevel(TrackDetail.RockSmithSong, SelectedLevel.Difficulty);
         }
         else
         {
             Score = RockSmithImporter.GetScoreForMaxDifficultyLevel(TrackDetail.RockSmithSong, SelectedLevel.Difficulty);
         }
     }
     else
     {
         Score = null;
     }
 }
Пример #2
0
 private void GenerateScore()
 {
     if (TrackDetail != null && SelectedLevel != null)
     {
         //using(var stream=File.OpenWrite(@"d:\rocksmith\temp\" + TrackDetail.RockSmithSong.Title + "_" + TrackDetail.RockSmithSong.Arrangement + ".xml"))
         //{
         //    TrackDetail.RockSmithSong.Serialize(stream);
         //}
         if (LevelOnlySelected)
         {
             Score = RockSmithImporter.GetScoreForExactDifficultyLevel(TrackDetail.RockSmithSong, SelectedLevel.Difficulty);
         }
         else
         {
             Score = RockSmithImporter.GetScoreForMaxDifficultyLevel(TrackDetail.RockSmithSong, SelectedLevel.Difficulty);
         }
     }
     else
     {
         Score = null;
     }
 }