Exemple #1
0
        public void RefreshFiles(Meta[] oMetaList)
        {
            //Logger.Log("Refreshing Files: " + String.Join(";", ());

            // small scan, ie files have changed, use background worker
            BackgroundWorker worker = new BackgroundWorker();
            worker.DoWork += delegate(object sender, DoWorkEventArgs e)
            {
                RefreshFiles_Executing(oMetaList);
            };
            worker.RunWorkerAsync();
            TriggeredStarted();
        }
Exemple #2
0
 protected void TriggerUpdated(Meta Item, int Result)
 {
     Logger.Log("Scanner: Item Updated: " + Item.Filename);
     if (Updated != null)
         Updated(Item, Result);
     Item.TriggerMetaUpdated();
 }
Exemple #3
0
 protected void TriggerAllItemsFound(Meta[] NewItems)
 {
     Logger.Log("Scanner: All Items Found, {0} items", NewItems.Length);
     if (AllItemsFound != null)
         AllItemsFound(NewItems);
 }
Exemple #4
0
 protected void TriggerScanningItem(Meta Item)
 {
     Logger.Log("Scanner: Scanning Item: {0}", Item.Filename);
     if (ScanningItem != null)
         ScanningItem(Item);
 }
Exemple #5
0
 protected void AddItem(Meta Item)
 {
     if(this.Items.ContainsKey(Item.Filename))
         return;
     this.Items.Add(Item.Filename.ToLower(), Item);
     if (ItemAdded != null)
         ItemAdded(Item);
 }