示例#1
0
 protected override void InitControl()
 {
     base.InitControl();
     if (Bounds.IsEmpty)
     {
         bounds = new System.Drawing.Rectangle(0, 0, 240, 300);
     }
     buttons              = new ButtonCollection(null);
     buttons.ListChanged += new System.ComponentModel.ListChangedEventHandler(buttons_ListChanged);
 }
示例#2
0
 protected override void InitControl()
 {
     buttons = new ButtonCollection(this);
     base.InitControl();
 }