Separate pages

This commit is contained in:
2022-11-26 23:47:46 +08:00
parent 6ab7bac20b
commit 436c4d809c
48 changed files with 12655 additions and 8659 deletions

View File

@@ -44,7 +44,7 @@ namespace GrasscutterTools
/// </summary>
/// <param name="form">加载语言的窗口</param>
/// <param name="formType">窗口的类型</param>
public static void LoadLanguage(Form form, Type formType)
public static void LoadLanguage(Control form, Type formType)
{
if (form != null)
{
@@ -77,8 +77,15 @@ namespace GrasscutterTools
foreach (Control c in control.Controls)
{
resources.ApplyResources(c, c.Name);
Loading(c, resources);
if (c is UserControl uc)
{
LoadLanguage(uc, uc.GetType());
}
else
{
resources.ApplyResources(c, c.Name);
Loading(c, resources);
}
}
}