private void SendMoveFiles() { var data = new TorrentMovedData(Location, MoveFiles, Torrents.Where(x => !x.IsAdd).Select(x => x.Id)); _eventAggregator.GetEvent<MoveTorrents>().Publish(data); }
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; } } }