Resolve "Component: Settings" #69

Merged
thorsten merged 32 commits from 13-component-settings into main 2022-08-05 19:35:32 +00:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit e91d8fe2eb - Show all commits

No files matched your search

@@ -79,4 +79,9 @@ public partial class Setting : UserControl
Dock = DockStyle.Top, Dock = DockStyle.Top,
}; };
} }
public static IEnumerable<Task<Setting>> GetAllSettings()
{
yield return ShowDeepLSettingAsync();
}
} }
@@ -7,8 +7,8 @@ public partial class Settings : UserControl
this.InitializeComponent(); this.InitializeComponent();
this.Load += async (sender, args) => this.Load += async (sender, args) =>
{ {
var deepL = await Setting.ShowDeepLSettingAsync(); foreach (var setting in Setting.GetAllSettings())
this.panelSettings.Controls.Add(deepL); this.panelSettings.Controls.Add(await setting);
}; };
} }
} }