商品选品 更新类目 子账户单独批量修改 及其他功能
This commit is contained in:
1 parent
8e919b0bd7
commit
52220daa8b
46 files changed
+4960
-211
No files matched your search
@@ -22,6 +22,18 @@ namespace TemuKJD.Extension
|
||||
}
|
||||
return location;
|
||||
}
|
||||
public static Point GetRelativePosition(this Control control, Control parentControl)
|
||||
{
|
||||
Point location = control.Location;
|
||||
Control parent = control.Parent;
|
||||
while (parent != null && parent != parentControl)
|
||||
{
|
||||
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;
|
||||
@@ -34,5 +46,14 @@ namespace TemuKJD.Extension
|
||||
}
|
||||
return location;
|
||||
}
|
||||
public static Control GetParentNotTable(this Control contorl)
|
||||
{
|
||||
Control parent = contorl.Parent;
|
||||
while (parent != null && (parent is TableLayoutPanel || parent is FlowLayoutPanel))
|
||||
{
|
||||
parent = parent.Parent;
|
||||
}
|
||||
return parent;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user