// load from xml file -SHS public bool Load(String filename) { m_commands.Clear(); XmlHelper xh = new XmlHelper(); xh.Start(filename, "ProjectorCmdList"); List<XmlNode> ndlist = xh.GetAllSections(null, "Command"); foreach (XmlNode nd in ndlist) { ProjectorCommand pc = new ProjectorCommand(); pc.name = xh.GetString(nd, "Name", "none"); pc.hex = xh.GetBool(nd, "IsHex", false); pc.command = xh.GetString(nd, "Cmd", ""); m_commands.Add(pc); } return true; }