Forex_Strategy_Builder.Fancy_Panel.OnResize C# (CSharp) Method

OnResize() protected method

On Resize
protected OnResize ( EventArgs eventargs ) : void
eventargs System.EventArgs
return void
        protected override void OnResize(EventArgs eventargs)
        {
            base.OnResize(eventargs);
            if (showCaption)
            {
                width = ClientSize.Width - 2 * border;
                height = ClientSize.Height - captionHeight - border;
                rectfCaption = new RectangleF(0, 0, ClientSize.Width, captionHeight);
            }
            else
            {
                width  = ClientSize.Width - 2 * border;
                height = ClientSize.Height - captionHeight - border;
                rectfCaption = new RectangleF(0, 0, ClientSize.Width, captionHeight);
            }

            Invalidate();

            return;
        }