JenkInd export strings function

This commit is contained in:
dexyfex
2017-12-15 00:07:26 +11:00
Unverified
parent 96638b8317
commit b4d577fe84
4 changed files with 61 additions and 6 deletions
+23
View File
@@ -242,5 +242,28 @@ namespace CodeWalker
}
}
private void SaveStringsButton_Click(object sender, EventArgs e)
{
if (SaveFileDialog.ShowDialog(this) != DialogResult.OK)
{
return;
}
string file = SaveFileDialog.FileName;
try
{
string[] lines = JenkIndex.GetAllStrings();
File.WriteAllLines(file, lines);
MessageBox.Show(lines.Length.ToString() + " strings exported successfully.");
}
catch
{
MessageBox.Show("Error saving strings file.");
}
}
}
}