类目识别功能 多选功能优化 微信上货优化 微信客服信息识别优化等

This commit is contained in:
wule committed 2026-02-04 11:59:58 +08:00
1 parent c27063d704
commit a2a6719a99
31 files changed
+2223 -750

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TemuKJD.Extension
{
public static class ControlExtension
{
public static Point GetRelativePosition(this Control control, Form form)
{
Point location = control.Location;
Control parent = control.Parent;
while (parent != null && parent != form)
{
location.X += parent.Location.X;
location.Y += parent.Location.Y;
parent = parent.Parent;
}
return location;
}
public static Point GetRelativePosition(this Control control)
{
Point location = control.Location;
Control parent = control.Parent;
while (parent != null && !(parent is Form))
{
location.X += parent.Location.X;
location.Y += parent.Location.Y;
parent = parent.Parent;
}
return location;
}
}
}