protected override void OnActivate()
 {
     // Prepare disposables
     _disposables?.Dispose();
     // automatically update the DisplayName
     _disposables = new CompositeDisposable
     {
         ImgurLanguage.CreateDisplayNameBinding(this, nameof(IImgurLanguage.History))
     };
     var ignoringTask = LoadHistory();
 }
        protected override void OnActivate()
        {
            // Prepare disposables
            _disposables?.Dispose();
            _disposables = new CompositeDisposable();

            // automatically update the DisplayName
            var imgurHistoryLanguageBinding = ImgurLanguage.CreateDisplayNameBinding(this, nameof(IImgurLanguage.History));

            // Make sure the greenshotLanguageBinding is disposed when this is no longer active
            _disposables.Add(imgurHistoryLanguageBinding);
        }
Beispiel #3
0
        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(ImgurConfiguration);

            // automatically update the DisplayName
            var imgurLanguageBinding = ImgurLanguage.CreateDisplayNameBinding(this, nameof(IImgurLanguage.SettingsTitle));

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

            base.Initialize(config);
        }
        public override void Initialize(IConfig config)
        {
            // Make sure the destination settings are shown
            FileConfigPartViewModel.DestinationFileConfiguration = ImgurConfiguration;

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

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

            base.Initialize(config);
        }