//Lägg till land private void btnAddCountry_Click_1(object sender, RoutedEventArgs e) { var name = tbCountryName.Text; var curr = tbCurrency.Text; var sub = Int32.Parse(tbMaxCash.Text); var logic = new LogicHandler(); if (lvCountriesEdit.Items.Contains(name)) { MessageBox.Show("Detta land finns redan!"); } else { logic.AddNewCountry(name, curr, sub); lvCountriesEdit.Items.Clear(); PupulateListViewCountries(); } }