private void SetPropertyGridObject(NgimuApi.Settings settings) { m_SettingsTypeDescriptor = new SettingsTypeDescriptor(settings); propertyGrid1.SelectedObject = m_SettingsTypeDescriptor; propertyGrid1.ExpandAllGridItems(); }
public OptionsForm() { InitializeComponent(); settings = new SettingsTypeDescriptor(this); propertyGrid.SelectedObject = settings; }
public SettingsViewModel(ISettingsService settingsService) { SettingsDescriptor = new SettingsTypeDescriptor(settingsService.Settings); }