mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-10-03 13:58:36 +00:00
Make the file picker only show valid files (#28)
* Make the file picker only show valid files * Fix file wildcard patterns
This commit is contained in:
parent
7d77decf17
commit
58d9dd3a67
1 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ public class FilePatchForm : Form {
|
||||||
Rows = {
|
Rows = {
|
||||||
new TableRow(
|
new TableRow(
|
||||||
new TableCell(new Label { Text = "EBOOT.elf: ", VerticalAlignment = VerticalAlignment.Center }),
|
new TableCell(new Label { Text = "EBOOT.elf: ", VerticalAlignment = VerticalAlignment.Center }),
|
||||||
new TableCell(this.filePicker = new FilePicker { TabIndex = 0 })
|
new TableCell(this.filePicker = new FilePicker { TabIndex = 0 , FileAction = FileAction.OpenFile, Filters = { new FileFilter("ELF files", "*.elf", "*.ELF"), new FileFilter("All Files", "*.*") }})
|
||||||
),
|
),
|
||||||
new TableRow(
|
new TableRow(
|
||||||
new TableCell(new Label { Text = "Server URL: ", VerticalAlignment = VerticalAlignment.Center }),
|
new TableCell(new Label { Text = "Server URL: ", VerticalAlignment = VerticalAlignment.Center }),
|
||||||
|
@ -58,7 +58,7 @@ public class FilePatchForm : Form {
|
||||||
),
|
),
|
||||||
new TableRow(
|
new TableRow(
|
||||||
new TableCell(new Label { Text = "Output filename: ", VerticalAlignment = VerticalAlignment.Center }),
|
new TableCell(new Label { Text = "Output filename: ", VerticalAlignment = VerticalAlignment.Center }),
|
||||||
new TableCell(this.outputFileName = new FilePicker { TabIndex = 2, FileAction = FileAction.SaveFile })
|
new TableCell(this.outputFileName = new FilePicker { TabIndex = 2, FileAction = FileAction.SaveFile, Filters = { new FileFilter("ELF files", "*.elf", "*.ELF"), new FileFilter("All Files", "*.*") }})
|
||||||
),
|
),
|
||||||
new TableRow(
|
new TableRow(
|
||||||
new TableCell(this.CreateHelpButton(4)),
|
new TableCell(this.CreateHelpButton(4)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue