|
|
|
@ -98,16 +98,30 @@ namespace Rs.Controls
|
|
|
|
|
set { _InitSlotStatus = value; InitSlot(InitSlotStatus); Invalidate(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public TraySlot GetSlot(ESlotStatus status)
|
|
|
|
|
public TraySlot GetSlot(ESlotStatus status,bool reverse=false)
|
|
|
|
|
{
|
|
|
|
|
if(reverse)
|
|
|
|
|
{
|
|
|
|
|
for (int row = 0; row < RowNum; row++)
|
|
|
|
|
{
|
|
|
|
|
for (int col = ColumnNum; col > 0; col--)
|
|
|
|
|
{
|
|
|
|
|
int index = row * (ColumnNum) + col;
|
|
|
|
|
if (traySlotsDic[index].SlotStatus == status)
|
|
|
|
|
return traySlotsDic[index];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
foreach (KeyValuePair<int, TraySlot> kv in traySlotsDic)
|
|
|
|
|
{
|
|
|
|
|
if (kv.Value.SlotStatus == status)
|
|
|
|
|
return kv.Value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过穴位的索引获取穴位
|
|
|
|
|
/// </summary>
|
|
|
|
|