private void cmbNomi_SelectionChanged(object sender, SelectionChangedEventArgs e) { if ((string)cmbNomi.SelectedItem != "") { dgrAccoppiamenti.ItemsSource = CoppieUtility.VariMatch(CSVUtility.FindByName((string)cmbNomi.SelectedItem)); } }
public static string PiselloQuadrato(string name) { string boh = ""; CSVElement element = CSVUtility.FindByName(name); boh += name + "\n"; boh += "Musica: " + element.InMusica + "\n"; boh += "Film: " + element.InFilm + "\n"; boh += "SerieTV: " + element.InSerieTV + "\n"; boh += "Giappo: " + element.InGiappo + "\n"; boh += "Libri: " + element.InLibri + "\n"; boh += "Giochi: " + element.InGames + "\n"; boh += "Sport: " + element.InSport + "\n"; boh += "Tranquillo il sabato?: " + element.SabTranq + "\n"; boh += "Luoghi del sabato: " + element.SabLuoghi + "\n"; boh += "Compagnia sabato: " + element.SabCompagnia + "\n"; boh += "Hobby sabato: " + element.SabHobby + "\n"; boh += "Fine del sabato: " + element.SabFine + "\n"; boh += "Altri interessi: " + element.InOther + "\n"; boh += "Blacklist: " + element.Blacklist + "\n\n\n"; return(boh); }