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