Exemplo n.º 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);
 }
Exemplo n.º 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));
        }
Exemplo n.º 4
0
 public void SetGuitarPath(string name)
 {
     GuitarPath = GuitarPath.Persist(name);
     setTrackFromPath();
 }
Exemplo n.º 5
0
 public CurrentSongService(SongCollection songCollection)
 {
     this.songCollection = songCollection;
     GuitarPath          = GuitarPath.FromSettings();
 }