/* Add new item to listview */
        private void AddItem(Main.csEntry en)
        {
            if (en.pages == 0)
            return;
              ListViewItem lvi = new ListViewItem(en.sArtist);
              lvi.SubItems.AddRange(new string[] {
              en.sTitle,
              en.pages.ToString(),
              lFound.Count.ToString()
              });
              lFound.Add(en);

              if (hsIgnore.Contains(en.sArtist + en.sTitle)) {
            if (ChkBx_All.Checked) {
              lvi.BackColor = Color.MistyRose;
              LV_Found.Items.Add(lvi);
            }
              }
              else
            LV_Found.Items.Add(lvi);

              this.SuspendLayout();
              Text = "Scan: Found " + LV_Found.Items.Count + " possible entries";
              this.ResumeLayout();
        }
Exemple #2
0
 public void StartThread(Main main)
 {
     if (!this.ThreadAlive) {
         thLoadMetadata = new Thread(main.AutoMetadata);
         thLoadMetadata.IsBackground = true;
         thLoadMetadata.Start();
     }
 }
Exemple #3
0
 public void StartThread(Main main)
 {
     if (!this.ThreadAlive) {
         thLoadCovers = new Thread(main.PopulateIcons);
         thLoadCovers.IsBackground = true;
         thLoadCovers.Start();
     }
 }