예제 #1
0
 private void TabPages_ItemAdded(object sender, LCDTabPageEventArgs e)
 {
     if (Visible)
     {
         Invalidate();
     }
 }
예제 #2
0
 private void TabPages_ItemRemoved(object sender, LCDTabPageEventArgs e)
 {
     if (e.TabPage == SelectedTab)
     {
         SelectedTab = null;
     }
 }
예제 #3
0
 /// <summary>
 ///     Raises the <see cref="E:ItemRemoved" /> event.
 /// </summary>
 /// <param name="e">The <see cref="LogiFrame.LCDTabPageEventArgs" /> instance containing the event data.</param>
 protected virtual void OnItemRemoved(LCDTabPageEventArgs e)
 {
     ItemRemoved?.Invoke(this, e);
 }