winform+dev的前后台分离标准项目
lg
2024-08-31 84a67b8541e5d26d3eb79adde960488226adbd0e
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -7,12 +7,11 @@
using System.Net;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Gs.DevApp.ToolBox;
using System.Resources;
using System.Drawing;
using Newtonsoft.Json;
using Gs.DevApp.Models;
using System.Windows.Forms;
namespace Gs.DevApp.ToolBox
{
@@ -150,5 +149,18 @@
            rto.rtnData = json["rtnData"];
            return rto;
        }
        /// <summary>
        /// 设置系统字体大小,目前并不通用
        /// </summary>
        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);
            }
        }
    }
}