Exemplo n.º 1
0
 private void Partition(CISymbolDictionary aDictionary)
 {
     foreach (CISymbol crashItemSymbol in aDictionary)
     {
         bool serializable = CXmlSymbol.IsSerializable(crashItemSymbol);
         if (serializable)
         {
             Symbol           symbol           = crashItemSymbol.Symbol;
             SymbolCollection symbolCollection = symbol.Collection;
             //
             string        collectionName = symbolCollection.FileName.FileNameInHost.ToUpper();
             CXmlSymbolSet set            = null;
             //
             if (!iSets.ContainsKey(collectionName))
             {
                 set = new CXmlSymbolSet(symbolCollection);
                 iSets.Add(collectionName, set);
             }
             else
             {
                 set = iSets[collectionName];
             }
             //
             set.Add(crashItemSymbol);
         }
     }
 }
Exemplo n.º 2
0
 protected override void XmlSerializeChildren(CrashXmlPlugin.FileFormat.Document.CXmlDocumentSerializationParameters aParameters)
 {
     foreach (KeyValuePair <CIElementId, CISymbol> kvp in iSymbols)
     {
         CXmlSymbol xmlSymbol = new CXmlSymbol(kvp.Value);
         xmlSymbol.XmlSerialize(aParameters);
     }
 }