コード例 #1
0
        private void SetTranslationDirection(TranslationDirection translationDirection)
        {
            _morseCoderSettings.Direction = translationDirection;

            CurrentTranslationDirection = _morseCoderSettings.Direction;

            var settingsChangedMessage = new SettingsChangedMessage(CurrentTranslationDirection);
            MessengerInstance.Send(settingsChangedMessage);
        }
コード例 #2
0
ファイル: MainViewModel.cs プロジェクト: mjcdev/MorseCoder
 private void SettingsChangedMessageHandler(SettingsChangedMessage settingsChangedMessage)
 {
     if (settingsChangedMessage.TranslationDirection != Direction)
     {
         Direction = settingsChangedMessage.TranslationDirection;
         ConfigureTranslator(Direction);
         Input = Translation;
     }
 }