public override void Initialize(IConfig config) { FileConfigPartViewModel.DestinationFileConfiguration = GooglePhotosConfiguration; // Prepare disposables _disposables?.Dispose(); // Place this under the Ui parent ParentId = nameof(ConfigIds.Destinations); // automatically update the DisplayName _disposables = new CompositeDisposable { GooglePhotosLanguage.CreateDisplayNameBinding(this, nameof(IGooglePhotosLanguage.SettingsTitle)) }; // Make sure Commit/Rollback is called on the IUiConfiguration config.Register(GooglePhotosConfiguration); 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(GooglePhotosConfiguration); // automatically update the DisplayName var boxLanguageBinding = GooglePhotosLanguage.CreateDisplayNameBinding(this, nameof(IGooglePhotosLanguage.SettingsTitle)); // Make sure the greenshotLanguageBinding is disposed when this is no longer active _disposables.Add(boxLanguageBinding); base.Initialize(config); }