diff --git a/Rs.Controls/RsTray.cs b/Rs.Controls/RsTray.cs index fe601b8..d3013ac 100644 --- a/Rs.Controls/RsTray.cs +++ b/Rs.Controls/RsTray.cs @@ -543,10 +543,23 @@ namespace Rs.Controls panel2_Paint(null, null); } } - + private List drawSlots = new List(); private void panel2_MouseUp(object sender, MouseEventArgs e) { drawRegion = false; + drawSlots.Clear(); + foreach (KeyValuePair kvSlot in traySlotsDic) + { + if (drawRect.IntersectsWith(kvSlot.Value.Bound)) + { + drawSlots.Add(kvSlot.Value); + } + } + } + + public List GetDrawSlots() + { + return drawSlots; } public TraySlot SelectSlot { get; set; }