示例#1
0
文件: TabPage.cs 项目: xnum/hasuite
 internal void SetParent(PageCollection parent)
 {
     this.myParent = parent;
     if (ParentChanged != null)
     {
         ParentChanged();
     }
 }
示例#2
0
文件: Load.cs 项目: xnum/hasuite
 public Load(MultiBoard board, TabPages.PageCollection Tabs, EventHandler rightClickHandler)
 {
     InitializeComponent();
     DialogResult = DialogResult.Cancel;
     styleManager.ManagerStyle = UserSettings.applicationStyle;
     this.multiBoard           = board;
     this.Tabs = Tabs;
     this.rightClickHandler = rightClickHandler;
 }
示例#3
0
文件: Load.cs 项目: hanistory/hasuite
 public Load(MultiBoard board, TabPages.PageCollection Tabs, EventHandler rightClickHandler)
 {
     InitializeComponent();
     DialogResult = DialogResult.Cancel;
     styleManager.ManagerStyle = UserSettings.applicationStyle;
     this.multiBoard = board;
     this.Tabs = Tabs;
     this.rightClickHandler = rightClickHandler;
 }
示例#4
0
 public PagePanel(PageCollection pages)
 {
     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
     this.SetStyle(ControlStyles.UserPaint, true);
     this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     this.Pages   = pages;
     this.Dock    = DockStyle.Fill;
     this.Padding = new Padding(1, 0, 1, 1);
     this.Pages.Controls.Add(this);
     this.BringToFront();
 }
示例#5
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();
 }
示例#6
0
文件: MapLoader.cs 项目: xnum/hasuite
        public static void CreateMap(string text, string tooltip, ContextMenuStrip menu, Point size, Point center, int layers, TabPages.PageCollection Tabs, MultiBoard multiBoard)
        {
            Board newBoard = multiBoard.CreateBoard(size, center, layers);

            TabPages.TabPage page = new TabPages.TabPage(text, multiBoard, tooltip, menu);
            page.Tag = newBoard;
            Tabs.Add(page);
            Tabs.CurrentPage         = page;
            multiBoard.SelectedBoard = newBoard;
            menu.Tag = newBoard;
            foreach (ToolStripItem item in menu.Items)
            {
                item.Tag = newBoard;
            }
        }