Beispiel #1
0
        static void Main(string[] args)
        {
            MorseWoorden mw = new MorseWoorden();
             string woord = mw.GetWoord();
             Console.WriteLine("Geef de morse-code van '{0}' (gescheiden door spaties): ", woord);
             string morsePoging = Console.ReadLine();
             string morseAntwoord = mw.RetrieveMorseCode(woord);

             int aantalFouten = mw.CheckAntwoord(woord, morsePoging, morseAntwoord);
             Console.WriteLine("Aantal fout: {0}", aantalFouten);
             Console.WriteLine("Het juiste antwoord is: {0}", morseAntwoord);
             Console.WriteLine("Druk op <ENTER>");
             Console.ReadLine();
        }
 public MainWindow()
 {
     InitializeComponent();
      btnCheck.IsEnabled = false;
      mw = new MorseWoorden();
 }