mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add import hook
This commit is contained in:
1
SabreToolsUI/SabreToolsUI.Designer.cs
generated
1
SabreToolsUI/SabreToolsUI.Designer.cs
generated
@@ -223,6 +223,7 @@
|
||||
this.importButton.TabIndex = 16;
|
||||
this.importButton.Text = "Import";
|
||||
this.importButton.UseVisualStyleBackColor = true;
|
||||
this.importButton.Click += new System.EventHandler(this.importButton_Click);
|
||||
//
|
||||
// folderButton
|
||||
//
|
||||
|
||||
@@ -115,5 +115,15 @@ namespace SabreTools
|
||||
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 + "\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user