private void MorseCharTB_TextChanged(object sender, EventArgs e)
 {
     try
     {
         MorseTB.Text = MorseEnter.charToMorse(MorseCharTB.Text.ToUpper().ToArray()[0]);
     }
     catch
     {
     }
 }
 private void MorseTB_TextChanged(object sender, EventArgs e)
 {
     foreach (char c in MorseTB.Text)
     {
         if ((c != '.') && (c != '-'))
         {
             MorseTB.Text = MorseTB.Text.Replace(c.ToString(), "");
         }
     }
     try
     {
         MorseCharTB.Text = new string(MorseEnter.morseToChar(MorseTB.Text), 1);
     }
     catch
     {
     }
 }