示例#1
0
文件: Scanner.cs 项目: revenz/iMeta
        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();
        }
示例#2
0
文件: Scanner.cs 项目: revenz/iMeta
 protected void TriggerUpdated(Meta Item, int Result)
 {
     Logger.Log("Scanner: Item Updated: " + Item.Filename);
     if (Updated != null)
         Updated(Item, Result);
     Item.TriggerMetaUpdated();
 }
示例#3
0
文件: Scanner.cs 项目: revenz/iMeta
 protected void TriggerAllItemsFound(Meta[] NewItems)
 {
     Logger.Log("Scanner: All Items Found, {0} items", NewItems.Length);
     if (AllItemsFound != null)
         AllItemsFound(NewItems);
 }
示例#4
0
文件: Scanner.cs 项目: revenz/iMeta
 protected void TriggerScanningItem(Meta Item)
 {
     Logger.Log("Scanner: Scanning Item: {0}", Item.Filename);
     if (ScanningItem != null)
         ScanningItem(Item);
 }
示例#5
0
文件: Scanner.cs 项目: revenz/iMeta
 protected void AddItem(Meta Item)
 {
     if(this.Items.ContainsKey(Item.Filename))
         return;
     this.Items.Add(Item.Filename.ToLower(), Item);
     if (ItemAdded != null)
         ItemAdded(Item);
 }