ZForge.Controls.ExplorerBar.Expando.OnItemRemoved C# (CSharp) Method

OnItemRemoved() protected method

Raises the ItemRemoved event
protected OnItemRemoved ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
return void
        protected virtual void OnItemRemoved(ControlEventArgs e)
        {
            // remove the control from the ControlCollection if it hasn't already
            if (this.Controls.Contains(e.Control))
            {
                this.Controls.Remove(e.Control);
            }

            // update the layout of the controls
            this.DoLayout();

            //
            if (ItemRemoved != null)
            {
                ItemRemoved(this, e);
            }
        }