private void SetTranslationDirection(TranslationDirection translationDirection) { _morseCoderSettings.Direction = translationDirection; CurrentTranslationDirection = _morseCoderSettings.Direction; var settingsChangedMessage = new SettingsChangedMessage(CurrentTranslationDirection); MessengerInstance.Send(settingsChangedMessage); }
private void SettingsChangedMessageHandler(SettingsChangedMessage settingsChangedMessage) { if (settingsChangedMessage.TranslationDirection != Direction) { Direction = settingsChangedMessage.TranslationDirection; ConfigureTranslator(Direction); Input = Translation; } }