Exemplo n.º 1
0
 protected override void OnHandleCreated(EventArgs e)
 {
     base.OnHandleCreated(e);
     ToolBar toolBar = this._propGrid.Controls[0] as ToolBar;
     if (toolBar != null)
     {
         this._toolBarSubclasser = new PropertyGridToolBarSubclasser(toolBar);
         this._toolBarSubclasser.Subclass();
     }
 }
Exemplo n.º 2
0
 protected override void OnHandleDestroyed(EventArgs e)
 {
     if (this._toolBarSubclasser != null)
     {
         this._toolBarSubclasser.Unsubclass();
         this._toolBarSubclasser = null;
     }
     base.OnHandleDestroyed(e);
 }