mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 05:38:45 -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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user