private void OnWidgetControlsChanged(IWidget widget, IEnumerable<Control> controlsRemoved, IEnumerable<Control> controlsAdded) { this.form.SuspendLayout(); controlsRemoved.ForEach(this.form.Controls.Remove); controlsAdded.ForEach(this.form.Controls.Add); if (widget is IFixedWidthWidget) { ResizeWidgets(widget as IFixedWidthWidget); } this.form.ResumeLayout(); }