winform+dev的前后台分离标准项目
lg
2024-08-29 fe25786d74d5387d16b490c8c0ef7ad6da2c821c
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -13,6 +13,7 @@
using System.Drawing;
using Newtonsoft.Json;
using Gs.DevApp.Models;
using System.Windows.Forms;
namespace Gs.DevApp.ToolBox
{
@@ -150,5 +151,15 @@
            rto.rtnData = json["rtnData"];
            return rto;
        }
        public static float GetFontSize =10;
        public static void SetFont(Control control) {
            float size = GetFontSize;
            foreach (Control childControl in control.Controls)
            {
                childControl.Font = new Font(childControl.Font.FontFamily, size, childControl.Font.Style);
                SetFont(childControl);
            }
        }
    }
}