public AdvancedSettingsForm(AdvancedSettings settings) { this.InitializeComponent(); this.propertyGrid1.SelectedObject = (object)settings; }