Example #1
0
        /// <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 {
                ;
            }
        }
Example #2
0
        /// <summary>
        /// Creates a new object.
        /// </summary>
        public BaseUserControl() : base()
        {
            _MonoAutoScaleMode = new MonoAutoScaleMode(this);

            _ValueChangedHelper = new ValueChangedHelper((sender, args) => OnValueChanged(sender, args));
        }