Exemplo n.º 1
0
 public TabView(PageCollection parent)
 {
     parent.CurrentPageChanged += new PageCollection.CurrentPageChangedEventHandler(MyParent_CurrentPageChanged);
     parent.PageAdded          += new PageCollection.PageAddedEventHandler(MyParent_PageAdded);
     parent.PageRemoved        += new PageCollection.PageRemovedEventHandler(MyParent_PageRemoved);
     this.Pages  = parent;
     this.Dock   = DockStyle.Top;
     this.Height = 25;
     parent.Controls.Add(this);
     this.DropdownButton = new DropdownButton(this);
     this.SendToBack();
 }
Exemplo n.º 2
0
 public TabView(PageCollection parent)
 {
     parent.CurrentPageChanged += new PageCollection.CurrentPageChangedEventHandler(MyParent_CurrentPageChanged);
     parent.PageAdded += new PageCollection.PageAddedEventHandler(MyParent_PageAdded);
     parent.PageRemoved += new PageCollection.PageRemovedEventHandler(MyParent_PageRemoved);
     this.Pages = parent;
     this.Dock = DockStyle.Top;
     this.Height = 25;
     parent.Controls.Add(this);
     this.DropdownButton = new DropdownButton(this);
     this.SendToBack();
 }