Пример #1
0
    public PocketModule(XmlNode node, Database db)
    {
        XmlNode wallet = null;

        wallet = node.SelectSingleNode("wallet");
        m_pWalletPointModel = new PocketPointModel(wallet, db);

        XmlNodeList list = node.SelectNodes("pocket_item");

        m_pWalletItemModule = new List <PocketItemModule>();
        foreach (XmlNode tmp in list)
        {
            PocketItemModule item = new PocketItemModule(tmp, db);
            m_pWalletItemModule.Add(item);
        }
    }
Пример #2
0
 public PocketItemController(PocketItemModule module, MainDatabase db)
 {
     m_pModule = module;
     m_pDB     = db;
 }