Habanero.Faces.Win.DefaultBOEditorFormWin.SetupFormSize C# (CSharp) Method

SetupFormSize() protected method

Sets up the forms size based on the BOPanel and the Buttons.
protected SetupFormSize ( IUIForm def ) : void
def IUIForm
return void
        protected virtual void SetupFormSize(IUIForm def)
        {
            _boPanel.Size = new Size(def.Width, def.Height);
            int width = _boPanel.Width;
            int height = _boPanel.Height + _buttons.Height;
            
            ClientSize = new Size(width, height);
            MinimumSize = Size;
        }