private void _tabControl_TabPageRemoved(object sender, NuGenCollectionEventArgs <NuGenTabPage> e) { if (e.Item != null) { this.DestroyTabPage(e.Item); } }
private void _switcher_SwitchPageRemoved(object sender, NuGenCollectionEventArgs <NuGenSwitchPage> e) { if (e.Item != null) { this.DestroySwitchPage(e.Item); } }
private void _navigationBar_NavigationPaneRemoved(object sender, NuGenCollectionEventArgs <NuGenNavigationPane> e) { NuGenNavigationPane navigationPaneToRemove = e.Item; if (navigationPaneToRemove != null) { this.DestroyNavigationPane(navigationPaneToRemove); } }
/* * OnTabPageRemoved */ /// <summary> /// Will bubble the <see cref="E:Genetibase.Controls.NuGenTabbedMdi.TabPageRemoved"/> event. /// </summary> /// <param name="e"></param> protected override void OnTabPageRemoved(NuGenCollectionEventArgs <NuGenTabPage> e) { base.OnTabPageRemoved(e); if (this.TabPages.Count < 1) { this.TabPages.Add(_blankTabPage); } }
/* * OnTabPageRemoved */ /// <summary> /// Will bubble the <see cref="E:Genetibase.Controls.NuGenTabbedMdi.TabPageRemoved"/> event. /// </summary> /// <param name="e"></param> protected override void OnTabPageRemoved(NuGenCollectionEventArgs <NuGenTabPage> e) { base.OnTabPageRemoved(e); if (TabPages.Count < 1) { TabPages.Add(BlankPage); } OnStateChanged(new MdiStateEventArgs(IsEmpty)); }
/* * OnTabPageAdded */ /// <summary> /// Will bubble the <see cref="E:Genetibase.Controls.NuGenTabbedMdi.TabPageAdded"/> event. /// </summary> /// <param name="e"></param> protected override void OnTabPageAdded(NuGenCollectionEventArgs <NuGenTabPage> e) { base.OnTabPageAdded(e); if (TabPages.Count > 1 && TabPages.Contains(BlankPage)) { TabPages.Remove(BlankPage); } OnStateChanged(new MdiStateEventArgs(IsEmpty)); }
/* * OnTabPageAdded */ /// <summary> /// Will bubble the <see cref="E:Genetibase.Controls.NuGenTabbedMdi.TabPageAdded"/> event. /// </summary> /// <param name="e"></param> protected override void OnTabPageAdded(NuGenCollectionEventArgs <NuGenTabPage> e) { base.OnTabPageAdded(e); if ( this.TabPages.Count > 1 && this.TabPages.Contains(_blankTabPage) ) { this.TabPages.Remove(_blankTabPage); } }
private void _switcher_SwitchPageRemoved(object sender, NuGenCollectionEventArgs<NuGenSwitchPage> e) { if (e.Item != null) { this.DestroySwitchPage(e.Item); } }
/* * OnTabPageRemoved */ /// <summary> /// Will bubble the <see cref="E:Genetibase.Controls.NuGenTabbedMdi.TabPageRemoved"/> event. /// </summary> /// <param name="e"></param> protected override void OnTabPageRemoved(NuGenCollectionEventArgs<NuGenTabPage> e) { base.OnTabPageRemoved(e); if (this.TabPages.Count < 1) { this.TabPages.Add(_blankTabPage); } }
/* * OnTabPageAdded */ /// <summary> /// Will bubble the <see cref="E:Genetibase.Controls.NuGenTabbedMdi.TabPageAdded"/> event. /// </summary> /// <param name="e"></param> protected override void OnTabPageAdded(NuGenCollectionEventArgs<NuGenTabPage> e) { base.OnTabPageAdded(e); if (TabPages.Count > 1 && TabPages.Contains(BlankPage)) { TabPages.Remove(BlankPage); } OnStateChanged(new MdiStateEventArgs(IsEmpty)); }
/// <summary> /// Will bubble the <see cref="E:Genetibase.Shared.Controls.NuGenNavigationBar.NavigationPaneAdded"/> event. /// </summary> /// <param name="e"></param> protected virtual void OnNavigationPaneAdded(NuGenCollectionEventArgs<NuGenNavigationPane> e) { Debug.Assert(this.Initiator != null, "this.Initiator != null"); this.Initiator.InvokeEventHandlerT<NuGenCollectionEventArgs<NuGenNavigationPane>>(_navigationPaneAdded, e); }
private void _tabControl_TabPageRemoved(object sender, NuGenCollectionEventArgs<NuGenTabPage> e) { if (e.Item != null) { this.DestroyTabPage(e.Item); } }
/// <summary> /// Will bubble the <see cref="E:Genetibase.Shared.Controls.NuGenNavigationBar.NavigationPaneAdded"/> event. /// </summary> /// <param name="e"></param> protected virtual void OnNavigationPaneAdded(NuGenCollectionEventArgs <NuGenNavigationPane> e) { Debug.Assert(this.Initiator != null, "this.Initiator != null"); this.Initiator.InvokeEventHandlerT <NuGenCollectionEventArgs <NuGenNavigationPane> >(_navigationPaneAdded, e); }
/// <summary> /// Will bubble the <see cref="E:Genetibase.Shared.Controls.NuGenTabControl.TabPageAdded"/> event. /// </summary> /// <param name="e"></param> protected virtual void OnTabPageAdded(NuGenCollectionEventArgs <NuGenTabPage> e) { Debug.Assert(this.Initiator != null, "this.Initiator != null"); this.Initiator.InvokeEventHandlerT <NuGenCollectionEventArgs <NuGenTabPage> >(_tabPageAdded, e); }
internal void OnNavigationButtonRemoved(NuGenCollectionEventArgs<NuGenNavigationButton> e) { this.Invalidate(); this.Initiator.InvokeEventHandlerT<NuGenCollectionEventArgs<NuGenNavigationButton>>(_navigationButtonRemoved, e); }
/// <summary> /// Will bubble the <see cref="E:Genetibase.Shared.Controls.NuGenSwitcher.SwitchPageRemoved"/> event. /// </summary> /// <param name="e"></param> protected virtual void OnSwitchPageRemoved(NuGenCollectionEventArgs <NuGenSwitchPage> e) { Debug.Assert(this.Initiator != null, "this.Initiator != null"); this.Initiator.InvokeEventHandlerT <NuGenCollectionEventArgs <NuGenSwitchPage> >(_switchPageRemoved, e); }
internal void OnNavigationButtonRemoved(NuGenCollectionEventArgs <NuGenNavigationButton> e) { this.Invalidate(); this.Initiator.InvokeEventHandlerT <NuGenCollectionEventArgs <NuGenNavigationButton> >(_navigationButtonRemoved, e); }
/// <summary> /// Will bubble the <see cref="TabPageRemoved"/> event. /// </summary> /// <param name="e"></param> protected virtual void OnTabPageRemoved(NuGenCollectionEventArgs<NuGenTabPage> e) { Debug.Assert(this.Initiator != null, "this.Initiator != null"); this.Initiator.InvokeEventHandlerT<NuGenCollectionEventArgs<NuGenTabPage>>(_tabPageRemoved, e); }
/// <summary> /// Will bubble the <see cref="E:Genetibase.Shared.Controls.NuGenSwitcher.SwitchPageAdded"/> event. /// </summary> /// <param name="e"></param> protected virtual void OnSwitchPageAdded(NuGenCollectionEventArgs<NuGenSwitchPage> e) { Debug.Assert(this.Initiator != null, "this.Initiator != null"); this.Initiator.InvokeEventHandlerT<NuGenCollectionEventArgs<NuGenSwitchPage>>(_switchPageAdded, e); }
/* * OnTabPageRemoved */ /// <summary> /// Will bubble the <see cref="E:Genetibase.Controls.NuGenTabbedMdi.TabPageRemoved"/> event. /// </summary> /// <param name="e"></param> protected override void OnTabPageRemoved(NuGenCollectionEventArgs<NuGenTabPage> e) { base.OnTabPageRemoved(e); if (TabPages.Count < 1) { TabPages.Add(BlankPage); } OnStateChanged(new MdiStateEventArgs(IsEmpty)); }
/* * OnTabPageAdded */ /// <summary> /// Will bubble the <see cref="E:Genetibase.Controls.NuGenTabbedMdi.TabPageAdded"/> event. /// </summary> /// <param name="e"></param> protected override void OnTabPageAdded(NuGenCollectionEventArgs<NuGenTabPage> e) { base.OnTabPageAdded(e); if ( this.TabPages.Count > 1 && this.TabPages.Contains(_blankTabPage) ) { this.TabPages.Remove(_blankTabPage); } }