private void SetTranslationDirection(TranslationDirection translationDirection)
        {
            _morseCoderSettings.Direction = translationDirection;

            CurrentTranslationDirection = _morseCoderSettings.Direction;

            var settingsChangedMessage = new SettingsChangedMessage(CurrentTranslationDirection);
            MessengerInstance.Send(settingsChangedMessage);
        }
Exemple #2
0
 private void SettingsChangedMessageHandler(SettingsChangedMessage settingsChangedMessage)
 {
     if (settingsChangedMessage.TranslationDirection != Direction)
     {
         Direction = settingsChangedMessage.TranslationDirection;
         ConfigureTranslator(Direction);
         Input = Translation;
     }
 }