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(); }
protected void TriggerUpdated(Meta Item, int Result) { Logger.Log("Scanner: Item Updated: " + Item.Filename); if (Updated != null) Updated(Item, Result); Item.TriggerMetaUpdated(); }
protected void TriggerAllItemsFound(Meta[] NewItems) { Logger.Log("Scanner: All Items Found, {0} items", NewItems.Length); if (AllItemsFound != null) AllItemsFound(NewItems); }
protected void TriggerScanningItem(Meta Item) { Logger.Log("Scanner: Scanning Item: {0}", Item.Filename); if (ScanningItem != null) ScanningItem(Item); }
protected void AddItem(Meta Item) { if(this.Items.ContainsKey(Item.Filename)) return; this.Items.Add(Item.Filename.ToLower(), Item); if (ItemAdded != null) ItemAdded(Item); }