public override void Draw() { if (!IsVisible || Size.Width == 0 || Size.Height == 0) { return; } OnBeforeDraw(); DrawControl(); OnBeforeChildrenDraw(); DrawChildControls(); DrawWindow(); TitleLabel.Draw(); DrawBorder(); OnAfterDraw(); }