diff --git a/I18N Commander/UI WinForms/Components/Setting.cs b/I18N Commander/UI WinForms/Components/Setting.cs index 0a06612..1d57e21 100644 --- a/I18N Commander/UI WinForms/Components/Setting.cs +++ b/I18N Commander/UI WinForms/Components/Setting.cs @@ -79,4 +79,9 @@ public partial class Setting : UserControl Dock = DockStyle.Top, }; } + + public static IEnumerable> GetAllSettings() + { + yield return ShowDeepLSettingAsync(); + } } \ No newline at end of file diff --git a/I18N Commander/UI WinForms/Components/Settings.cs b/I18N Commander/UI WinForms/Components/Settings.cs index c04e767..dcbef4c 100644 --- a/I18N Commander/UI WinForms/Components/Settings.cs +++ b/I18N Commander/UI WinForms/Components/Settings.cs @@ -7,8 +7,8 @@ public partial class Settings : UserControl this.InitializeComponent(); this.Load += async (sender, args) => { - var deepL = await Setting.ShowDeepLSettingAsync(); - this.panelSettings.Controls.Add(deepL); + foreach (var setting in Setting.GetAllSettings()) + this.panelSettings.Controls.Add(await setting); }; } }