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; }