Пример #1
0
 /// <summary>
 /// Remove an existing tab page
 /// </summary>
 /// <param name="page">page to be removed</param>
 public void Remove(TabPageView page)
 {
    _pagesPanel.Controls.Remove(page);
    RemoveButton(page.Button);
 }
Пример #2
0
 /// <summary>
 /// Add a new tab page
 /// </summary>
 /// <param name="page">tab page</param>
 public void Add(TabPageView page)
 {
    page.SetBounds(-15000, 0, _pagesPanel.Width, _pagesPanel.Height);
    _pagesPanel.Controls.Add(page);
    AddButton(page.Button);
 }