public override async Task NavigatedToAsync(object parameter = null) { await base.NavigatedToAsync(parameter); Addresses.AddRange(Persona.Addresses, true); Contacts.AddRange(Persona.Contacts, true); Emails.AddRange(Persona.Emails, true); }
public string[] GetEmails() { if (Title.HasEmail()) { Emails = Title.GetEmails().ToList(); } if (Content.HasEmail()) { Emails.AddRange(Content.GetEmails().ToList()); } Emails.Add(CreatedBy); return(Emails.Distinct().ToArray()); }
public void Process(Context context) { var users = context.Server.Database.QueryUsers(queryByUsername); var usernames = users.Select(a => a.Username); Usernames.AddRange(usernames); // Don't really care about these but they're necessary to work properly var unknowns = usernames.Select(a => "Unknown"); FirstNames.AddRange(unknowns); LastNames.AddRange(unknowns); Emails.AddRange(unknowns); }
/// <include file="../../docs/Microsoft.Maui.Essentials/Contact.xml" path="//Member[@MemberName='.ctor']/Docs" /> public Contact( string id, string namePrefix, string givenName, string middleName, string familyName, string nameSuffix, IEnumerable <ContactPhone> phones, IEnumerable <ContactEmail> email, string displayName = null) { Id = id; NamePrefix = namePrefix; GivenName = givenName; MiddleName = middleName; FamilyName = familyName; NameSuffix = nameSuffix; Phones.AddRange(phones?.ToList()); Emails.AddRange(email?.ToList()); DisplayName = displayName; }