Exemplo n.º 1
0
        //Fyller listViewn med ländernas namn
        private void PupulateListViewCountries()
        {
            var logic = new LogicHandler();
            var count = logic.getInfoOnSelectedCountry();

            foreach (var country in count)
            {
                lvCountriesEdit.Items.Add(country.Name);
            }

        }
Exemplo n.º 2
0
        //Fyller Tbs med text av landet man valt.
        
        private void lvCountriesEdit_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
        {
            var logic = new LogicHandler();
        
            var selected = lvCountriesEdit.SelectedValue.ToString();
            var count = logic.getInfoOnSelectedCountry();

            foreach (var countries in count)
            {
                if (selected == countries.Name)
                {
                    tbCountryName.Text = countries.Name;
                    tbMaxCash.Text = countries.Subsistence.ToString();
                    tbCurrency.Text = countries.Currency;
                }
            }

          
        
        }