예제 #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);
         }
     }
 }
예제 #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);
                    }
                }
            }
        }
예제 #3
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);
                    }
                }
            }
        }
예제 #4
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);
         }
     }
 }
예제 #5
0
파일: Browser.cs 프로젝트: mintwans/cpsc483
 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();
         }
     }
 }