Ejemplo n.º 1
0
 private void SendMoveFiles()
 {
     var data = new TorrentMovedData(Location, MoveFiles, Torrents.Where(x => !x.IsAdd).Select(x => x.Id));
     _eventAggregator.GetEvent<MoveTorrents>().Publish(data);
 }
Ejemplo n.º 2
0
 private void MoveTorrents(TorrentMovedData data)
 {
     _torrentClient.ChangeLocation(data.TorrentIDs, data.Location, data.MoveFiles);
     foreach (var item in backingTorrents)
     {
         if (data.TorrentIDs.Where(x => x == item.Id).Count() > 0)
         {
             item.Location = data.Location;
         }
     }
 }