void EnableFormEvents() { _form = CoreUtil.GetParent <FormEx>(this); if (_form != null) { CoreUtil.AdjustImages(this, ref _dpiOld, _form.DpiNew); } }
protected override void ScaleControl(System.Drawing.SizeF factor, BoundsSpecified specified) { base.ScaleControl(factor, specified); CoreUtil.AdjustImages(this, ref _dpiOld, _form.DpiNew); }