Ejemplo n.º 1
0
        private void DownloadImages()
        {
            HiBaiduAlbumDownloader dler = new HiBaiduAlbumDownloader(this.textBoxUserName.Text);
            DiskImagePersistencer  p    = new DiskImagePersistencer(dler, this.textBoxDestDir.Text);

            p.init();
            dler.setPersistence(p);
            dler.onDownLoadProgress += new HiBaiduAlbumDownloader.dDownloadProgress(downloading);
            dler.onInfoChange       += new HiBaiduAlbumDownloader.dChangeInfo(changeinfo);
            dler.getAll();
            MessageBox.Show("Download OK");
        }
Ejemplo n.º 2
0
 private void DownloadImages()
 {
     HiBaiduAlbumDownloader dler = new HiBaiduAlbumDownloader(this.textBoxUserName.Text);
     DiskImagePersistencer p = new DiskImagePersistencer(dler, this.textBoxDestDir.Text);
     p.init();
     dler.setPersistence(p);
     dler.onDownLoadProgress += new HiBaiduAlbumDownloader.dDownloadProgress(downloading);
     dler.onInfoChange += new HiBaiduAlbumDownloader.dChangeInfo(changeinfo);
     dler.getAll();
     MessageBox.Show("Download OK");
 }