>using System; > >namespace ALS.ImageviewConfig >{ > /// <summary> > /// Summary description for IndividualDelay. > /// </summary> > public class IndividualDelay > { > #region Properties > private System.Int16 _IncludeFile; > public System.Int16 IncludeFile > { > get > { > return this._IncludeFile; > } > set > { > this._IncludeFile = value; > } > } > > private System.Int16 _IncludeDelay; > public System.Int16 IncludeDelay > { > get > { > return this._IncludeDelay; > } > set > { > this._IncludeDelay = value; > } > } > > > #endregion Properties > > #region Constructor > public IndividualDelay(System.Int16 paraIncludeFile, System.Int16 paraIncludeDelay) > { > this.IncludeFile = paraIncludeFile; > this.IncludeDelay = paraIncludeDelay; > } > #endregion Constructor > > > #region Override > > public override string ToString() > { > return "Include"+this.IncludeFile.ToString().PadRight(15,' ') + "Delay:" + this.IncludeDelay.ToString().PadLeft(4,' '); > } > > > #endregion Override > > > > } >} >>
>using System; >using System.Collections; > >using ALS.ImageviewConfig; > > >namespace ALS.ImageviewConfig >{ > /// <summary> > /// Summary description for IndividualDelayCollection. > /// </summary> > public class IndividualDelayCollection : CollectionBase > { > > public IndividualDelay this[ int index ] > { > get > { > return( (IndividualDelay) List[index] ); > } > set > { > List[index] = value; > } > } > > public int Add( IndividualDelay value ) > { > return( List.Add( value ) ); > } > > /* > public int IndexOf( Int16 value ) > { > return( List.IndexOf( value ) ); > } > */ > > public void Insert( int index, IndividualDelay value ) > { > List.Insert( index, value ); > } > > public void Remove( Int16 value ) > { > List.Remove( value ); > } > /* > public bool Contains( Int16 value ) > { > // If value is not of type Int16, this will return false. > return( List.Contains( value ) ); > } > */ > protected override void OnInsert( int index, Object value ) > { > if ( value.GetType() != Type.GetType("ALS.ImageviewConfig.IndividualDelay") ) > throw new ArgumentException( "Value must be of type ALS.ImageviewConfig.IndividualDelay.", "value" ); > } > > protected override void OnRemove( int index, Object value ) > { > if ( value.GetType() != Type.GetType("ALS.ImageviewConfig.IndividualDelay") ) > throw new ArgumentException( "Value must be of type ALS.ImageviewConfig.IndividualDelay.", "value" ); > } > > protected override void OnSet( int index, Object oldValue, Object newValue ) > { > if ( newValue.GetType() != Type.GetType("ALS.ImageviewConfig.IndividualDelay") ) > throw new ArgumentException( "newValue must be of type ALS.ImageviewConfig.IndividualDelay.", "newValue" ); > } > > protected override void OnValidate( Object value ) > { > if ( value.GetType() != Type.GetType("ALS.ImageviewConfig.IndividualDelay") ) > throw new ArgumentException( "value must be of type ALS.ImageviewConfig.IndividualDelay." ); > } > > } > > > >} >>