public void SaveTrack(SyncTrack track)
 {
     var path = GetTrackPath(track.Name);
     using (var stream = File.Open(path, FileMode.Create, FileAccess.Write, FileShare.ReadWrite))
     using (var serializer = new CommandSerializer(stream))
     {
         serializer.SerializeTrackEntries(track.Entries);
     }
 }
 public SyncTrack LoadTrack(string trackName)
 {
     var path = GetTrackPath(trackName);
     using (var stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
     using (var serializer = new CommandSerializer(stream))
     {
         var entries = serializer.DeserializeTrackEntries();
         var track = new SyncTrack(trackName, entries);
         return track;
     }
 }