Exemplo n.º 1
0
 /// <summary>
 /// Adds the specified <see cref="SimpleField"/> to this instance.
 /// </summary>
 /// <param name="field">The <c>SimpleField</c> to add to this instance.</param>
 /// <exception cref="System.ArgumentNullException">field is null.</exception>
 /// <exception cref="System.InvalidOperationException">
 /// field belongs to another <see cref="Element"/>.
 /// </exception>
 public void AddField(SimpleField field)
 {
     this.TryAddChild(field);
 }
 private void GatherSimpleFieldFields(SimpleField field, Schema schema)
 {
     if ((field.Name != null) && (field.DisplayName != null))
     {
         string name = schema.Name + "/" + field.Name + DisplayNamePostfix;
         _map[name] = field.DisplayName;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Adds the specified <see cref="SimpleField"/> to this instance.
 /// </summary>
 /// <param name="field">The <c>SimpleField</c> to add to this instance.</param>
 /// <exception cref="System.ArgumentNullException">field is null.</exception>
 /// <exception cref="System.InvalidOperationException">
 /// field belongs to another <see cref="Element"/>.
 /// </exception>
 public void AddField(SimpleField field)
 {
     this.AddChild(field);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Adds the specified <see cref="SimpleField"/> to this instance.
 /// </summary>
 /// <param name="field">The <c>SimpleField</c> to add to this instance.</param>
 /// <exception cref="System.ArgumentNullException">field is null.</exception>
 /// <exception cref="System.InvalidOperationException">
 /// field belongs to another <see cref="Element"/>.
 /// </exception>
 public void AddField(SimpleField field)
 {
     this.AddAsChild(this.fields, field);
 }