public override void Read(ObjectReader reader, XmlElement elem) { name = elem.GetAttribute("name"); string uid = elem.GetAttribute("undoId"); if (uid.Length > 0) { UndoId = uid; } foreach (XmlElement child in elem.SelectNodes("action")) { Action ac = new Action(); ac.Read(reader, child); actions.Add(ac); } }
public override void Read (ObjectReader reader, XmlElement elem) { name = elem.GetAttribute ("name"); string uid = elem.GetAttribute ("undoId"); if (uid.Length > 0) UndoId = uid; foreach (XmlElement child in elem.SelectNodes ("action")) { Action ac = new Action (); ac.Read (reader, child); actions.Add (ac); } }