mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2026-11-05 15:11:59 +08:00
Separate pages
This commit is contained in:
1 parent
6ab7bac20b
commit
436c4d809c
48 files changed
+12655
-8659
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user