public Dictionary <string, bool> GetAssociatedResources()
        {
            Dictionary <string, bool> dictionary = new Dictionary <string, bool>();

            using (List <BaseEvent> .Enumerator enumerator = this.trackEvents.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    BaseEvent current = enumerator.get_Current();
                    Dictionary <string, bool> associatedResources = current.GetAssociatedResources();
                    if (associatedResources != null)
                    {
                        using (Dictionary <string, bool> .KeyCollection.Enumerator enumerator2 = associatedResources.get_Keys().GetEnumerator())
                        {
                            while (enumerator2.MoveNext())
                            {
                                string current2 = enumerator2.get_Current();
                                if (dictionary.ContainsKey(current2))
                                {
                                    Dictionary <string, bool> dictionary2;
                                    string text;
                                    bool   flag = (dictionary2 = dictionary).get_Item(text = current2);
                                    dictionary2.set_Item(text, flag | associatedResources.get_Item(current2));
                                }
                                else
                                {
                                    dictionary.Add(current2, associatedResources.get_Item(current2));
                                }
                            }
                        }
                    }
                }
            }
            return(dictionary);
        }
 public void GetAssociatedResources(Dictionary <object, AssetRefType> results, int markID)
 {
     for (int i = 0; i < this.trackEvents.get_Count(); i++)
     {
         BaseEvent baseEvent = this.trackEvents.get_Item(i);
         if (baseEvent != null)
         {
             baseEvent.GetAssociatedResources(results, markID);
         }
     }
 }
Beispiel #3
0
 public void GetAssociatedResources(Dictionary <object, AssetRefType> results, int markID)
 {
     for (int i = 0; i < this.trackEvents.Count; i++)
     {
         BaseEvent event2 = this.trackEvents[i];
         if (event2 != null)
         {
             event2.GetAssociatedResources(results, markID);
         }
     }
 }