public override void Initialize(IConfig config) { FileConfigPartViewModel.DestinationFileConfiguration = OneDriveConfiguration; // Prepare disposables _disposables?.Dispose(); // Place this config viewmodel under the Destinations parent ParentId = nameof(ConfigIds.Destinations); // Make sure Commit/Rollback is called on the IUiConfiguration config.Register(OneDriveConfiguration); // automatically update the DisplayName _disposables = new CompositeDisposable { OneDriveLanguage.CreateDisplayNameBinding(this, nameof(IOneDriveLanguage.SettingsTitle)) }; base.Initialize(config); }
public override void Initialize(IConfig config) { // Prepare disposables _disposables?.Dispose(); _disposables = new CompositeDisposable(); // Place this under the Ui parent ParentId = nameof(ConfigIds.Destinations); // Make sure Commit/Rollback is called on the IUiConfiguration config.Register(OneDriveConfiguration); // automatically update the DisplayName var languBinding = OneDriveLanguage.CreateDisplayNameBinding(this, nameof(IOneDriveLanguage.SettingsTitle)); // Make sure the greenshotLanguageBinding is disposed when this is no longer active _disposables.Add(languBinding); base.Initialize(config); }