private void HandleTooLarge()
        {
            var schemaManager = new DiagramPropertySchemaManager(_diagram.Model);
            var propertyType  = schemaManager.GetDpiFactorPropertyType();

            if (propertyType != null)
            {
                if ((_diagram.GetProperty(propertyType) ??
                     _diagram.AddProperty(propertyType, null)) is IPropertyDecimal property)
                {
                    property.Value *= 2;
                }
            }
        }
        private void HandleTooSmall()
        {
            var schemaManager = new DiagramPropertySchemaManager(_diagram.Model);
            var propertyType  = schemaManager.GetDpiFactorPropertyType();

            if (propertyType != null)
            {
                if ((_diagram.GetProperty(propertyType) ??
                     _diagram.AddProperty(propertyType, null)) is IPropertyDecimal property)
                {
                    property.Value /= 2;
                    MessageBox.Show(this,
                                    "The Diagram will now be closed.\nPlease open it again and apply the minor fixes which may eventually be required",
                                    "Diagram fix", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    ParentForm?.Close();
                }
            }
        }