private void _tabControl_TabPageRemoved(object sender, NuGenCollectionEventArgs <NuGenTabPage> e)
 {
     if (e.Item != null)
     {
         this.DestroyTabPage(e.Item);
     }
 }
Example #2
0
 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);
            }
        }
Example #4
0
        /*
         * 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);
            }
        }
Example #5
0
        /*
         * 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));
        }
Example #6
0
        /*
         * 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));
        }
Example #7
0
        /*
         * 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);
			}
		}
Example #10
0
		/*
		 * 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);
			}
		}
Example #13
0
 /// <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);
 }
Example #14
0
 /// <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);
			}
Example #16
0
 /// <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);
 }
Example #17
0
 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);
		}
Example #19
0
		/// <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);
		}
Example #20
0
		/*
		 * 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));
		}
Example #21
0
		/*
		 * 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);
			}
		}