Esempio n. 1
0
        private void ExecutePreviewTranslation(object o)
        {
            var tmpLanguage = Languages.First(l => l.Iso2 == CurrentLanguage);

            _translationHelper.SetTemporaryTranslation(tmpLanguage);
            _translationHelper.TranslateProfileList(_conversionProfiles);

            // Notify about changed properties
            RaisePropertyChanged(nameof(CurrentUpdateInterval));
            RaisePropertyChanged(nameof(AskSwitchPrinterValues));
            RaisePropertyChanged(nameof(ApplicationSettings));
            RaisePropertyChanged(nameof(IsRemovedFromExplorer));
            PreviewTranslation?.Invoke(this, EventArgs.Empty);
        }
        private void ExecutePreviewTranslation(object o)
        {
            _translationHelper.SetTemporaryTranslation(Languages.First(l => l.CommonName == CurrentLanguage));
            Translator.Translate(this);
            _translationHelper.TranslateProfileList(_conversionProfiles);

            // Notify about changed properties
            RaisePropertyChanged(nameof(UpdateIntervals));
            RaisePropertyChanged(nameof(CurrentUpdateInterval));
            RaisePropertyChanged(nameof(AskSwitchPrinterValues));
            RaisePropertyChanged(nameof(ApplicationSettings));

            PreviewTranslation?.Invoke(this, EventArgs.Empty);
        }