public override void Add( APWidget item ) { base.Add( item ); if( layer != null ) { layer.Register( item ); } }
private void OnChildRemoved( APWidget child ) { if( ChildRemoved != null ) { ChildRemoved( this, new ContainerChildEvent( child ) ); } }
public virtual void Remove( APWidget item ) { children.Remove( item ); item.Parent = null; OnChildRemoved( item ); }
public virtual void Add( APWidget item ) { children.Add( item ); item.Parent = this; OnChildAdded( item ); }
public void Register( APWidget widget ) { registered.Add( widget ); }
public APButton( APWidget parent, Rectangle _location ) : base(_location) { }