예제 #1
0
 private void setTrackFromPath()
 {
     if (CurrentSongInfo != null && CurrentSongInfo.TrackInfos != null)
     {
         SelectedRockSmithTrack = GuitarPath.pickTrack(CurrentSongInfo.TrackInfos);
     }
 }
 private RSTrackInfo testPathWithTracks(string pathName, string[] tracks)
 {
     GuitarPath path = new GuitarPath(pathName);
     var trackList = new List<RSTrackInfo>();
     foreach(var track in tracks)
     {
         trackList.Add(new RSTrackInfo() { Name = track });
     }
     return path.pickTrack(trackList);
 }
예제 #3
0
        private RSTrackInfo testPathWithTracks(string pathName, string[] tracks)
        {
            GuitarPath path      = new GuitarPath(pathName);
            var        trackList = new List <RSTrackInfo>();

            foreach (var track in tracks)
            {
                trackList.Add(new RSTrackInfo()
                {
                    Name = track
                });
            }
            return(path.pickTrack(trackList));
        }
예제 #4
0
 public void SetGuitarPath(string name)
 {
     GuitarPath = GuitarPath.Persist(name);
     setTrackFromPath();
 }
예제 #5
0
 public CurrentSongService(SongCollection songCollection)
 {
     this.songCollection = songCollection;
     GuitarPath          = GuitarPath.FromSettings();
 }