|
|
|
@ -108,6 +108,21 @@ namespace Rs.Controls
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过穴位的索引获取穴位
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="slotIndex"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public TraySlot GetSlot(int slotIndex)
|
|
|
|
|
{
|
|
|
|
|
foreach (KeyValuePair<int, TraySlot> kv in traySlotsDic)
|
|
|
|
|
{
|
|
|
|
|
if (kv.Key == slotIndex)
|
|
|
|
|
return kv.Value;
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool CanDraw { get; set; } = true;
|
|
|
|
|
private Dictionary<int, TraySlot> traySlotsDic = new Dictionary<int, TraySlot>();
|
|
|
|
|
|
|
|
|
|