mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 01:15:11 +08:00
JenkInd export strings function
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user