private void TabPages_ItemAdded(object sender, LCDTabPageEventArgs e) { if (Visible) { Invalidate(); } }
private void TabPages_ItemRemoved(object sender, LCDTabPageEventArgs e) { if (e.TabPage == SelectedTab) { SelectedTab = null; } }
/// <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); }