Пример #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();
 }