Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions ncmdumpGUI/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions ncmdumpGUI/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,26 @@ private void ConvertProc()
}
}
}


private void Form1_DragEnter(object sender, DragEventArgs e)
{

if (e.Data.GetDataPresent(DataFormats.FileDrop))
e.Effect = DragDropEffects.Link;
else e.Effect = DragDropEffects.None;
}

private void Form1_DragDrop(object sender, DragEventArgs e)
{

string path = ((System.Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString();
txtNcmFolderPath.Text = path;
txtMp3FolderPath.Text = path + "_MP3";
if (!Directory.Exists(txtMp3FolderPath.Text))
{
Directory.CreateDirectory(txtMp3FolderPath.Text);
}
}
}
}