Example #1
0
 internal void SetParent(PageCollection parent)
 {
     this.myParent = parent;
     if (ParentChanged != null)
     {
         ParentChanged();
     }
 }
Example #2
0
File: Load.cs Project: 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;
 }
Example #3
0
 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;
 }
Example #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();
 }
Example #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();
 }
Example #6
0
        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;
            }
        }