Ejemplo n.º 1
0
        private void ButtonGenerate_Click(object sender, RoutedEventArgs e)
        {
            PlayerName names = new PlayerName();

            TextBoxNames.Clear();

            for (int i = 0; i < 20; i++)
            {
                TextBoxNames.AppendText($"{names.NextName()}{Environment.NewLine}");
            }

            this.Title = Directories.SaveGames;
        }