Skip to content

Commit

Permalink
Merge pull request #24 from adelikat/drag-n-drop
Browse files Browse the repository at this point in the history
Allow Drag & Drop of Rom image to DW3 ROM Image box
  • Loading branch information
gameboy9 authored May 25, 2019
2 parents cd12b4f + e08a553 commit 69122e6
Show file tree
Hide file tree
Showing 24 changed files with 869 additions and 880 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DW3Randomizer/.vs/
DW3Randomizer/bin/
DW3Randomizer/obj/
Binary file removed DW3Randomizer/.vs/DW3Randomizer/v15/.suo
Binary file not shown.
1,699 changes: 851 additions & 848 deletions DW3Randomizer/Form1.Designer.cs

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion DW3Randomizer/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4866,5 +4866,16 @@ private void btnCopyChecksum_Click(object sender, EventArgs e)
{
Clipboard.SetText(lblNewChecksum.Text);
}
}

private void txtFileName_DragEnter(object sender, DragEventArgs e)
{
e.Effect = e.Data.GetDataPresent(DataFormats.FileDrop) ? DragDropEffects.Copy : DragDropEffects.None;
}

private void txtFileName_DragDrop(object sender, DragEventArgs e)
{
var filePaths = (string[])e.Data.GetData(DataFormats.FileDrop);
txtFileName.Text = filePaths[0];
}
}
}
3 changes: 3 additions & 0 deletions DW3Randomizer/Form1.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,7 @@
<metadata name="adjustments.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="adjustments.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
Binary file removed DW3Randomizer/bin/Debug/DW3Randomizer.exe
Binary file not shown.
6 changes: 0 additions & 6 deletions DW3Randomizer/bin/Debug/DW3Randomizer.exe.config

This file was deleted.

Binary file removed DW3Randomizer/bin/Debug/DW3Randomizer.pdb
Binary file not shown.
14 changes: 0 additions & 14 deletions DW3Randomizer/bin/Debug/lastFile.txt

This file was deleted.

Binary file removed DW3Randomizer/bin/Release/DW3Randomizer.exe
Binary file not shown.
1 change: 0 additions & 1 deletion DW3Randomizer/obj/Debug/CoreCompileInputs.cache

This file was deleted.

Binary file removed DW3Randomizer/obj/Debug/DW3Randomizer.Form1.resources
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file removed DW3Randomizer/obj/Debug/DW3Randomizer.exe
Binary file not shown.
Binary file removed DW3Randomizer/obj/Debug/DW3Randomizer.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion DW3Randomizer/obj/Release/CoreCompileInputs.cache

This file was deleted.

0 comments on commit 69122e6

Please sign in to comment.