Пример #1
0
 private void TabPagesInsertComplete(object sender, NetTabPageEventArgs e)
 {
     this.Controls.Add(e.Page);
     if (this.CurrentPage == -1)
     {
         this.CurrentPage = 0;
     }
 }
Пример #2
0
 private void TabPagesRemoveComplete(object sender, NetTabPageEventArgs e)
 {
     this.Controls.Remove(e.Page);
     if (this.CurrentPage >= this.TabPages.Count)
     {
         this.CurrentPage = this.TabPages.Count - 1;
     }
 }