diff --git a/Rs.Controls/RsTray.cs b/Rs.Controls/RsTray.cs
index a9233bb..c8d9510 100644
--- a/Rs.Controls/RsTray.cs
+++ b/Rs.Controls/RsTray.cs
@@ -108,6 +108,21 @@ namespace Rs.Controls
return null;
}
+ ///
+ /// 通过穴位的索引获取穴位
+ ///
+ ///
+ ///
+ public TraySlot GetSlot(int slotIndex)
+ {
+ foreach (KeyValuePair kv in traySlotsDic)
+ {
+ if (kv.Key == slotIndex)
+ return kv.Value;
+ }
+ return null;
+ }
+
public bool CanDraw { get; set; } = true;
private Dictionary traySlotsDic = new Dictionary();