private void BaseForm_SizeChanged(object sender, EventArgs e) => BaseWindowUtils.CenterWindow(this, _uiApp);
public BaseForm(UIApplication uiApp, Size initialSize) { BaseWindowUtils.SetupWindow(this, uiApp, initialSize); _uiApp = uiApp; SizeChanged += BaseForm_SizeChanged; }