Beispiel #1
0
 public override void OnRelease()
 {
     this.bValidPageCnt = 0;
     if (this.astPageList != null)
     {
         for (int i = 0; i < this.astPageList.Length; i++)
         {
             if (this.astPageList[i] != null)
             {
                 this.astPageList[i].Release();
                 this.astPageList[i] = null;
             }
         }
     }
     this.bBuyPageCnt = 0;
     if (this.astPageExtra != null)
     {
         for (int j = 0; j < this.astPageExtra.Length; j++)
         {
             if (this.astPageExtra[j] != null)
             {
                 this.astPageExtra[j].Release();
                 this.astPageExtra[j] = null;
             }
         }
     }
     if (this.stRecommend != null)
     {
         this.stRecommend.Release();
         this.stRecommend = null;
     }
 }
Beispiel #2
0
 public COMDT_ACNT_SYMBOLINFO()
 {
     for (int i = 0; i < 12; i++)
     {
         this.astPageList[i] = (COMDT_SYMBOLPAGE_DETAIL)ProtocolObjectPool.Get(COMDT_SYMBOLPAGE_DETAIL.CLASS_ID);
     }
     this.astPageExtra = new COMDT_SYMBOLPAGE_EXTRA[30];
     for (int j = 0; j < 30; j++)
     {
         this.astPageExtra[j] = (COMDT_SYMBOLPAGE_EXTRA)ProtocolObjectPool.Get(COMDT_SYMBOLPAGE_EXTRA.CLASS_ID);
     }
     this.stRecommend = (COMDT_SYMBOLPAGE_RCMD)ProtocolObjectPool.Get(COMDT_SYMBOLPAGE_RCMD.CLASS_ID);
 }
Beispiel #3
0
 public override void OnUse()
 {
     if (this.astPageList != null)
     {
         for (int i = 0; i < this.astPageList.Length; i++)
         {
             this.astPageList[i] = (COMDT_SYMBOLPAGE_DETAIL)ProtocolObjectPool.Get(COMDT_SYMBOLPAGE_DETAIL.CLASS_ID);
         }
     }
     if (this.astPageExtra != null)
     {
         for (int j = 0; j < this.astPageExtra.Length; j++)
         {
             this.astPageExtra[j] = (COMDT_SYMBOLPAGE_EXTRA)ProtocolObjectPool.Get(COMDT_SYMBOLPAGE_EXTRA.CLASS_ID);
         }
     }
     this.stRecommend = (COMDT_SYMBOLPAGE_RCMD)ProtocolObjectPool.Get(COMDT_SYMBOLPAGE_RCMD.CLASS_ID);
 }