mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-28 12:27:23 -05:00
Fix Drag&Drop
Just do it manually after initialization. No way to bind the events in the designer.
This commit is contained in:
parent
62eddb6aec
commit
0d23f53d84
|
|
@ -59,7 +59,23 @@ public Main()
|
|||
|
||||
// Box Drag & Drop
|
||||
foreach (PictureBox pb in PAN_Box.Controls)
|
||||
{
|
||||
pb.AllowDrop = true;
|
||||
pb.DragDrop += tabMain_DragDrop;
|
||||
pb.DragEnter += tabMain_DragEnter;
|
||||
}
|
||||
foreach (TabPage tab in tabMain.TabPages)
|
||||
{
|
||||
tab.AllowDrop = true;
|
||||
tab.DragDrop += tabMain_DragDrop;
|
||||
tab.DragEnter += tabMain_DragEnter;
|
||||
}
|
||||
foreach (TabPage tab in tabBoxMulti.TabPages)
|
||||
{
|
||||
tab.AllowDrop = true;
|
||||
tab.DragDrop += tabMain_DragDrop;
|
||||
tab.DragEnter += tabMain_DragEnter;
|
||||
}
|
||||
// Box to Tabs D&D
|
||||
dragout.AllowDrop = true;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user