Beispiel #1
0
 public ImageHeaderForm(BindingImageHeaderCollection source)
 {
     InitializeComponent();
     BindingSource bindingSource = new BindingSource();
     bindingSource.DataSource = source;
     imageHeaderView1.DataSource = bindingSource;
 }
Beispiel #2
0
 void viewImagesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     BindingImageHeaderCollection images = new BindingImageHeaderCollection();
     ForEachSelectedThreads(thread =>
         {
             if (!thread.DownloadCompleted)
             {
                 foreach (ImageHeader image in thread.ImageHeaders)
                 {
                     image.SourceThreadTitle = thread.Title;
                     images.Add(image);
                 }
                 //foreach (ImageHeader maybeImage in thread.MaybeImageHeaders)
                 //{
                 //    maybeImage.SourceThreadTitle = thread.Title;
                 //    images.Add(maybeImage);
                 //}
             }
         });
     if (images.Count > 0)
     {
         ImageHeaderForm imageViewer = new ImageHeaderForm(images);
         imageViewer.ShowDialog();
     }
     else
     {
         MessageBox.Show("表示できる画像情報がありませんでした。\nダウンロード完了後は画像情報を表示できません。",
             "確認", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }