public void FromCsv(Csv csv) { UserList.Clear(); foreach (CsvEntry?e in csv.Items) { if (e == null) { continue; } if (e.Count >= 4) { try { MailUser u = new MailUser(e); this.UserList.Add(u); } catch { } } else if (e.Count == 1) { try { string mail = e[0]; if (Str.CheckMailAddress(mail)) { MailUser u = new MailUser(mail, mail, "", "ja", new List <KeyValuePair <string, string> >()); this.UserList.Add(u); } } catch { } } } }