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(DropboxConfiguration);

            // automatically update the DisplayName
            var boxLanguageBinding = DropboxLanguage.CreateDisplayNameBinding(this, nameof(IDropboxLanguage.SettingsTitle));

            // Make sure the greenshotLanguageBinding is disposed when this is no longer active
            _disposables.Add(boxLanguageBinding);

            base.Initialize(config);
        }
Пример #2
0
        public override void Initialize(IConfig config)
        {
            FileConfigPartViewModel.DestinationFileConfiguration = DropboxConfiguration;

            // 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(DropboxConfiguration);

            // automatically update the DisplayName
            _disposables = new CompositeDisposable
            {
                DropboxLanguage.CreateDisplayNameBinding(this, nameof(IDropboxLanguage.SettingsTitle))
            };

            base.Initialize(config);
        }