Exemple #1
0
        private void openPicture(PictureDisplaySize pictureDisplaySize)
        {
            if (listview_Picasa_uploads.SelectedItems != null && listview_Picasa_uploads.SelectedItems.Count > 0)
            {
                for (int i = 0; i < listview_Picasa_uploads.SelectedItems.Count; i++)
                {
                    PicasaInfo imgurInfo = (PicasaInfo)listview_Picasa_uploads.SelectedItems[i].Tag;

                    System.Diagnostics.Process.Start(imgurInfo.LinkUrl(pictureDisplaySize));
                }
            }
        }
Exemple #2
0
        private void clipboardUrl(PictureDisplaySize pictureDisplaySize)
        {
            StringBuilder links = new StringBuilder();

            if (listview_Picasa_uploads.SelectedItems != null && listview_Picasa_uploads.SelectedItems.Count > 0)
            {
                for (int i = 0; i < listview_Picasa_uploads.SelectedItems.Count; i++)
                {
                    PicasaInfo PicasaInfo = (PicasaInfo)listview_Picasa_uploads.SelectedItems[i].Tag;

                    links.AppendLine(PicasaInfo.LinkUrl(pictureDisplaySize));
                }
            }
            try
            {
                Clipboard.SetText(links.ToString());
            }
            catch (Exception ex)
            {
                LOG.Error("Can't write to clipboard: ", ex);
            }
        }