/// <summary> /// Creates a new object. /// </summary> public BaseForm() : base() { _MonoAutoScaleMode = new MonoAutoScaleMode(this); _ValueChangedHelper = new ValueChangedHelper((sender, args) => OnValueChanged(sender, args)); try { if (FontFactory.HasPreferredUIFont) { MonoAutoScaleMode.AlwaysDisableFontScaling = FontFactory.PreferredUIFontClashesWithAutoSizing; } } catch { ; } }
/// <summary> /// Creates a new object. /// </summary> public BaseUserControl() : base() { _MonoAutoScaleMode = new MonoAutoScaleMode(this); _ValueChangedHelper = new ValueChangedHelper((sender, args) => OnValueChanged(sender, args)); }