pxx上货功能 temu备货管理可以查询商品售后率并根据售后率处理备货

This commit is contained in:
wule committed 2025-09-19 09:31:34 +08:00
1 parent f4fedf1e2f
commit 0e6a034d5f
34 files changed
+3568 -893

No files matched your search

+13 -2
View File
@@ -13,6 +13,16 @@ namespace TemuKJD.BaseForms
{
public partial class BaseForm : Form
{
public bool IsSetFontScaleNone { get; set; } = true;
public float FormDpi
{
get
{
return dpi;
}
}
private float dpi = 96;
public BaseForm()
{
InitializeComponent();
@@ -22,12 +32,13 @@ namespace TemuKJD.BaseForms
{
using (Graphics graphics = Graphics.FromHwnd(IntPtr.Zero))
{
float dpi = graphics.DpiX;
dpi = graphics.DpiX;
// 或者使用 graphics.DpiY 获取垂直方向的DPI
// float dpi = graphics.DpiY;
// Console.WriteLine("Screen DPI: " + dpi); // winform程序会闪退
SetFont(this, dpi);
if (IsSetFontScaleNone)
SetFont(this, dpi);
}
}