Beispiel #1
0
 private void OnBrowseAlbum(object sender, System.EventArgs e)
 {
     foreach (ListViewItem item in this.AlbumList.SelectedItems)
     {
         PicasaEntry entry    = item.Tag as PicasaEntry;
         string      photoUri = entry.FeedUri;
         if (photoUri != null)
         {
             PictureBrowser b = new PictureBrowser(this.picasaService, false);
             b.Show();
             b.StartQuery(photoUri, entry.Title.Text);
         }
     }
 }
Beispiel #2
0
        private void SaveAlbum_Click(object sender, System.EventArgs e)
        {
            foreach (ListViewItem item in this.AlbumList.SelectedItems)
            {
                PicasaEntry entry    = item.Tag as PicasaEntry;
                string      photoUri = entry.FeedUri;

                // Show the FolderBrowserDialog.
                DialogResult result = folderBrowserDialog.ShowDialog();

                PictureBrowser backgroundjob = new PictureBrowser(this.picasaService, true);
                backgroundjob.Show();

                if (result == DialogResult.OK)
                {
                    string folderName = folderBrowserDialog.SelectedPath;
                    if (photoUri != null)
                    {
                        backgroundjob.BackupAlbum(photoUri, folderName);
                    }
                }
            }
        }
        private void SaveAlbum_Click(object sender, System.EventArgs e)
        {
            foreach (ListViewItem item in this.AlbumList.SelectedItems) 
            {
                PicasaEntry entry = item.Tag as PicasaEntry;
                string photoUri = entry.FeedUri; 

                // Show the FolderBrowserDialog.
                DialogResult result = folderBrowserDialog.ShowDialog();

                PictureBrowser backgroundjob = new PictureBrowser(this.picasaService, true);
                backgroundjob.Show();
              
                if( result == DialogResult.OK )
                {
                    string folderName = folderBrowserDialog.SelectedPath;
                    if (photoUri != null) 
                    {
                        backgroundjob.BackupAlbum(photoUri, folderName);
                    }
                }
            }
        }
 private void OnBrowseAlbum(object sender, System.EventArgs e)
 {
     foreach (ListViewItem item in this.AlbumList.SelectedItems) 
     {
         PicasaEntry entry = item.Tag as PicasaEntry;
         string photoUri = entry.FeedUri; 
         if (photoUri != null) 
         {
             PictureBrowser b = new PictureBrowser(this.picasaService, false);
             b.Show();
             b.StartQuery(photoUri, entry.Title.Text);
         }
     }
 }
Beispiel #5
0
 private void OnBrowseAlbum(object sender, System.EventArgs e)
 {
     foreach (ListViewItem item in this.AlbumList.SelectedItems) 
     {
         PicasaEntry entry = item.Tag as PicasaEntry;
         string photoUri = entry.FeedUri; 
         if (photoUri != null) 
         {
             PhotoQuery query = new PhotoQuery(photoUri);
             this.Cursor = Cursors.WaitCursor;
             PicasaFeed photoFeed = this.picasaService.Query(query);
             this.Cursor = Cursors.Default;
             PictureBrowser b = new PictureBrowser(this.picasaService, photoFeed, entry.Title.Text);
             b.Show();
         }
     }
 }