示例#1
0
文件: TabView.cs 项目: Aeopp/Github
 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();
 }
示例#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();
 }