/// <summary> /// Removes a hovering layer control from this container. /// </summary> public void RemoveControl(LayerControl Control) { if (Control._Container == this) { Control._Container = null; this._LayerControls.Remove(Control); } }
/// <summary> /// Adds a hovering layer control to the top of the layer container (above all other controls). The added control must not /// be used by any other layer containers. /// </summary> public void AddControl(LayerControl Control, Point Position) { if (Control._Container == null) { Control._Container = this; Control.Position = Position; this._LayerControls.AddLast(Control); } }
/// <summary> /// Brings the specified control to the top level of the layer container (above all other controls). /// </summary> public void BringToTop(LayerControl Control) { this._LayerControls.Remove(Control); this._LayerControls.AddLast(Control); }