public void ReadLog(XmlReader reader)
{
while (reader.Read() && reader.NodeType != XmlNodeType.EndElement)
{
Dictionary<string, string> attributes = new Dictionary<string, string>();
if (reader.Name == "ME")
{
if (reader.HasAttributes)
{
for (int i = 0; i < reader.AttributeCount; i++)
{
reader.MoveToAttribute(i);
attributes.Add(reader.Name, reader.Value);
}
}
MouseEvent e = new MouseEvent(attributes);
Evnts.AddLast(e);
//do shit here
}
else if (reader.Name == "Clickthrough")
{
if (reader.HasAttributes)
{
for (int i = 0; i < reader.AttributeCount; i++)
{
reader.MoveToAttribute(i);
attributes.Add(reader.Name, reader.Value);
}
}
Clickthrough c = new Clickthrough(attributes);
c.ReadLog(reader);
Evnts.AddLast(c);
}
}
}