/// <summary>
 /// Add an array of Named objects to collection
 /// </summary>
 /// <param name="collection">A generic NamedObjectCollection</param>
 public void Add(NamedObjectCollection <T> collection)
 {
     foreach (T obj in collection)
     {
         Add(obj);
     }
 }
Пример #2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public FieldCollectionMaster()
 {
     textFields        = new NamedObjectCollection <TextField>();
     mirrorFields      = new NamedObjectCollection <MirrorField>();
     inputFields       = new NamedObjectCollection <IInputField>();
     dataFields        = new NamedObjectCollection <IDataField>();
     tableColumnFields = new NamedObjectCollection <IDataField>();
     relatedFields     = new NamedObjectCollection <RelatedViewField>();
     gridFields        = new NamedObjectCollection <GridField>();
 }
Пример #3
0
 /// <summary>
 /// Dispose of the field collections.
 /// </summary>
 public override void Dispose()
 {
     if (this.dataFields != null)
     {
         dataFields.Dispose();
         dataFields = null;
     }
     if (this.inputFields != null)
     {
         inputFields.Dispose();
         inputFields = null;
     }
     if (this.mirrorFields != null)
     {
         mirrorFields.Dispose();
         mirrorFields = null;
     }
     if (this.tableColumnFields != null)
     {
         tableColumnFields.Dispose();
         tableColumnFields = null;
     }
     if (this.textFields != null)
     {
         textFields.Dispose();
         textFields = null;
     }
     if (this.relatedFields != null)
     {
         relatedFields.Dispose();
         relatedFields = null;
     }
     if (this.gridFields != null)
     {
         gridFields.Dispose();
         gridFields = null;
     }
     base.Dispose();
 }