mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-10 08:51:34 +08:00
Separate pages
This commit is contained in:
@@ -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