コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: WorkIssue.cs プロジェクト: workcard/CafeT
 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());
 }
コード例 #3
0
ファイル: UserLookupResult.cs プロジェクト: Alauraa/PFire
        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);
        }
コード例 #4
0
 /// <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;
 }