|
|
|
@ -543,10 +543,23 @@ namespace Rs.Controls
|
|
|
|
|
panel2_Paint(null, null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private List<TraySlot> drawSlots = new List<TraySlot>();
|
|
|
|
|
private void panel2_MouseUp(object sender, MouseEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
drawRegion = false;
|
|
|
|
|
drawSlots.Clear();
|
|
|
|
|
foreach (KeyValuePair<int, TraySlot> kvSlot in traySlotsDic)
|
|
|
|
|
{
|
|
|
|
|
if (drawRect.IntersectsWith(kvSlot.Value.Bound))
|
|
|
|
|
{
|
|
|
|
|
drawSlots.Add(kvSlot.Value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<TraySlot> GetDrawSlots()
|
|
|
|
|
{
|
|
|
|
|
return drawSlots;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public TraySlot SelectSlot { get; set; }
|
|
|
|
|