Пример #1
0
 // NOTE Add方法自动判断是否马上加载,而Load只能在运行时使用,要立即加载
 public void Add(ContentData data)
 {
     Content c = new Content(data);
     if (Loaded)
         c.Load(ContentMgr);
     ContentList.Add(c);
 }
Пример #2
0
 public Object Load(ContentData data)
 {
     Content c = new Content(data);
     c.Load(ContentMgr);
     ContentList.Add(c);
     return c.Combra;
 }
Пример #3
0
        public ContentSet(ContentSetData data)
        {
            this.Id = data.Id;
            this.Name = data.Name;

            ContentList = new List<Content>();
            foreach (ContentData ri in data.ContentDataList)
            {
                Content c = new Content(ri);
                ContentList.Add(c);
            }
        }