Exemplo n.º 1
0
 public bool AddTorrent()
 {
     if (openFileService.OpenFileDialog() && folderBrowerService.OpenFolderBrowserDialog())
     {
         return(bitTorrentManager.AddTorrent(openFileService.FileName, folderBrowerService.FolderName));
     }
     return(false);
 }
Exemplo n.º 2
0
        public async void Load()
        {
            CurrentStep     = 0;
            ResultIsVisible = false;
            if (_openFileSerice.OpenFileDialog())
            {
                var data = _loaderService.LoadData(_openFileSerice.FileName);
                await _repository.InsertData(data.ValidTransactions);

                ExportedRows    = data.ValidTransactions.Count();
                InvalidRows     = data.InvalidRows;
                ResultIsVisible = true;
            }
        }