public void add(int type, int tpyeid, int id) { List <string> lstr = new List <string>(); SXML ncpxml = XMLMgr.instance.GetSXML("newbie_fb"); SXML xml = ncpxml.GetNode("newbie", "id==" + tpyeid); if (xml != null) { List <SXML> l = new List <SXML>(); if (type == 1) { l = xml.GetNodeList("waitcode"); } else { l = xml.GetNodeList("code"); } foreach (SXML s in l) { lstr.Add(s.getString("value")); } } NewbieQueItem item = new NewbieQueItem(lstr, id); lQue.Add(item); }
public void add(List <string> lstr, int id) { NewbieQueItem item = new NewbieQueItem(lstr, id); lQue.Add(item); }
public void add(string str, int id) { NewbieQueItem item = new NewbieQueItem(str, id); lQue.Add(item); }