private void Save_Click(object sender, RoutedEventArgs e) { //try //{ PlayerRepo playerRepository = new PlayerRepo(); playerRepository.RegisterPlayer(playerName.Text, playerClub.Text, playerWarband.Text); MessageBox.Show($"New player: {playerName.Text}, has been created"); //} //catch //{ // MessageBox.Show("Fejl"); //} }