mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-25 20:07:09 +00:00
Speed up form translation
defer layout until after translation
This commit is contained in:
parent
da1f7c7426
commit
1dd4919adc
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,7 @@ namespace PKHeX
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Find control then change display Text.
|
// Find control then change display Text.
|
||||||
|
form.SuspendLayout();
|
||||||
foreach (string str in stringdata)
|
foreach (string str in stringdata)
|
||||||
{
|
{
|
||||||
string[] SplitString = str.Split(new[] { " = " }, StringSplitOptions.None);
|
string[] SplitString = str.Split(new[] { " = " }, StringSplitOptions.None);
|
||||||
|
@ -72,6 +73,7 @@ namespace PKHeX
|
||||||
else if (c is ToolStripItem)
|
else if (c is ToolStripItem)
|
||||||
(c as ToolStripItem).Text = text;
|
(c as ToolStripItem).Text = text;
|
||||||
}
|
}
|
||||||
|
form.ResumeLayout();
|
||||||
}
|
}
|
||||||
private static object FindControl(string name, Control.ControlCollection c)
|
private static object FindControl(string name, Control.ControlCollection c)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue