Beispiel #1
0
        private void SendToFlickr(object state)
        {
            try
            {
                List <ListViewItem> items = (List <ListViewItem>)state;
                if (items != null && items.Count > 0)
                {
                    foreach (ListViewItem lvi in items)
                    {
                        Capture cap = (lvi.Tag as Capture);
                        cap.PostToFlickr();
                    }
                }

                System.Windows.Forms.MessageBox.Show("All images have been uploaded to Flickr.");
            }
            catch (Exception ex)
            {
                Logging.Info("There was an error uploading your screen shots to Flickr.", ex);
                MessageBox.Show("There was an error uploading your screen shots to Flickr:\r\n" + ex.Message);
            }
        }