Add import hook

This commit is contained in:
Matt Nadareski
2016-03-29 23:29:02 -07:00
parent 0b6eae4d38
commit b225fd7395
2 changed files with 11 additions and 0 deletions

View File

@@ -223,6 +223,7 @@
this.importButton.TabIndex = 16; this.importButton.TabIndex = 16;
this.importButton.Text = "Import"; this.importButton.Text = "Import";
this.importButton.UseVisualStyleBackColor = true; this.importButton.UseVisualStyleBackColor = true;
this.importButton.Click += new System.EventHandler(this.importButton_Click);
// //
// folderButton // folderButton
// //

View File

@@ -115,5 +115,15 @@ namespace SabreTools
importTextBox.Text = fbd.SelectedPath; importTextBox.Text = fbd.SelectedPath;
} }
} }
private void importButton_Click(object sender, EventArgs e)
{
string path = importTextBox.Text;
if (path != "")
{
Process.Start("DATabase.exe", "-l -i input=\"" + path + "\"");
}
}
} }
} }