예제 #1
0
 protected override WebPartChrome CreateWebPartChrome()
 {
     if (null == this._chrome)
     {
         if (!this.RenderDivs)
         {
             this._chrome = new BaseChrome(this, base.WebPartManager);
         }
         else
         {
             this._chrome = new DivChrome(this, base.WebPartManager);
         }
     }
     return this._chrome;
 }
예제 #2
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     this._chrome = this.CreateWebPartChrome();
 }