Exemplo n.º 1
0
 /// <summary>
 ///   Inserts the given <see cref="DropDownTabPage" /> into the selector drop box at the correct index based on the
 ///   tab's <see cref="DropDownTabPage.PageIndex" />.
 /// </summary>
 /// <param name="p_ddpPage">The <see cref="DropDownTabPage" /> to insert.</param>
 protected void InsertTabPageInSelector(DropDownTabPage p_ddpPage)
 {
     for (var i = 0; i < TabSelector.Items.Count; i++)
     {
         var ddpCurrent = (DropDownTabPage)TabSelector.Items[i];
         if (ddpCurrent.PageIndex > p_ddpPage.PageIndex)
         {
             TabSelector.Items.Insert(i, p_ddpPage);
             return;
         }
     }
     TabSelector.Items.Add(p_ddpPage);
 }
Exemplo n.º 2
0
 /// <summary>
 ///   A simple consturctor that initializes the object with the given values.
 /// </summary>
 /// <param name="p_tpgPage">The tab page that was affected by the event.</param>
 public TabPageEventArgs(DropDownTabPage p_tpgPage)
 {
     TabPage = p_tpgPage;
 }