コード例 #1
0
 public static void GetListPostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
 {
     dataTable.BeginLoadData();
     foreach (object obj in dataTable.Rows)
     {
         DataRow dataRow = (DataRow)obj;
         dataRow["FormattedDomainNames"] = DDIHelper.JoinList <SmtpDomain>(dataRow["DomainNames"] as MultiValuedProperty <SmtpDomain>, (SmtpDomain domain) => domain.Domain);
     }
     dataTable.EndLoadData();
 }
コード例 #2
0
 private static void UpdateFormattedNameAndDomains(DataRow row)
 {
     row["FormattedName"]    = (true.Equals(row["Default"]) ? string.Format(Strings.DefaultSharingPolicyFormatString, row["Name"]) : row["Name"]);
     row["FormattedDomains"] = DDIHelper.JoinList <SharingPolicyDomain>(row["Domains"] as MultiValuedProperty <SharingPolicyDomain>, delegate(SharingPolicyDomain policyDomain)
     {
         if (policyDomain.Domain == "*")
         {
             return(Strings.SharingDomainOptionAll);
         }
         return(policyDomain.Domain);
     });
 }
コード例 #3
0
        public static void GetObjectPostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
        {
            OrganizationRelationship organizationRelationship = store.GetDataObject("OrganizationRelationship") as OrganizationRelationship;

            if (organizationRelationship != null && dataTable.Rows.Count == 1)
            {
                DataRow dataRow = dataTable.Rows[0];
                if (organizationRelationship.FreeBusyAccessLevel == FreeBusyAccessLevel.None)
                {
                    dataRow["FreeBusyAccessEnabled"] = false;
                    dataRow["FreeBusyAccessLevel"]   = FreeBusyAccessLevel.AvailabilityOnly;
                }
                dataRow["DomainNames"]          = OrganizationRelationshipAssistor.ToStringMVP(organizationRelationship.DomainNames);
                dataRow["FormattedDomainNames"] = DDIHelper.JoinList <SmtpDomain>(organizationRelationship.DomainNames, (SmtpDomain domain) => domain.Domain);
            }
        }