using IBKRTrader.Core.Settings; namespace IBKRTrader.UI.Views; /// Core-View: Einstellungen (PropertyGrid auf AppSettings) mit Speichern-Button. public sealed class SettingsView : Form { public SettingsView(SettingsService settings) { Text = "Settings"; Width = 820; Height = 720; StartPosition = FormStartPosition.CenterScreen; var grid = new PropertyGrid { Dock = DockStyle.Fill, SelectedObject = settings.Settings }; var save = new Button { Text = "Speichern", Dock = DockStyle.Bottom, Height = 36 }; save.Click += (_, _) => settings.Save(); Controls.Add(grid); Controls.Add(save); } }