private void LoadBlacklistTable(GXXmlReader reader)
 {
     BlacklistTable.Clear();
     if (reader.IsStartElement("BlacklistTable", true))
     {
         while (reader.IsStartElement("Item", false))
         {
             UInt16 k = (UInt16)reader.ReadElementContentAsInt("Key");
             UInt16 v = (UInt16)reader.ReadElementContentAsInt("Value");
             BlacklistTable.Add(new GXKeyValuePair <UInt16, UInt16>(k, v));
         }
         reader.ReadEndElement("BlacklistTable");
     }
 }
Exemplo n.º 2
0
 private void LoadBlacklistTable(GXXmlReader reader)
 {
     BlacklistTable.Clear();
     if (reader.IsStartElement("BlacklistTable", true))
     {
         while (reader.IsStartElement("Item", false))
         {
             ushort k = (ushort)reader.ReadElementContentAsInt("Key");
             ushort v = (ushort)reader.ReadElementContentAsInt("Value");
             BlacklistTable.Add(new GXKeyValuePair <ushort, ushort>(k, v));
         }
         reader.ReadEndElement("BlacklistTable");
     }
 }