private char ConvertMorseCode(string input) { MorseCode morseCodes = new MorseCode(); if (morseCodes.MorseCodes.ContainsValue(input)) { return(morseCodes.MorseCodes.First(x => x.Value.Equals(input)).Key); } else { return(' '); } }
private string ConvertCharacter(char ch) { MorseCode morseCodes = new MorseCode(); if (morseCodes.MorseCodes.Keys.Contains(ch)) { return(morseCodes.MorseCodes[ch]); } else { return(string.Empty); } }