コード例 #1
0
 public static FormFieldCatalog WithValues(this FormFieldCatalog formField, params long[] itemIds)
 {
     formField.Value = new Catalog {
         ItemIds = itemIds
     };
     return(formField);
 }
コード例 #2
0
 public static FormFieldCatalog WithValues(this FormFieldCatalog formField, params string[] itemNames)
 {
     formField.Value = new Catalog {
         ItemNames = itemNames
     };
     return(formField);
 }
コード例 #3
0
 public static FormFieldCatalog WithValue(this FormFieldCatalog formField, long?itemId)
 {
     formField.Value = itemId.HasValue ? new Catalog {
         ItemIds = new [] { itemId.Value }
     } : null;
     return(formField);
 }