Ejemplo n.º 1
0
 /// <summary>
 ///     <para>
 ///       Adds the contents of another <see cref='T:SIL.FieldWorks.Common.Controls.InformationBarButtonCollection'/> to the end of the collection.
 ///    </para>
 /// </summary>
 /// <param name='value'>
 ///    A <see cref='T:SIL.FieldWorks.Common.Controls.InformationBarButtonCollection'/> containing the objects to add to the collection.
 /// </param>
 /// <returns>
 ///   <para>None.</para>
 /// </returns>
 /// <seealso cref='T:SIL.FieldWorks.Common.Controls.InformationBarButtonCollection.Add'/>
 public void AddRange(InformationBarButtonCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add(value[i]);
     }
 }
Ejemplo n.º 2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        protected override void Dispose(bool disposing)
        {
            System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
                if (m_buttons != null)
                {
                    m_buttons.Clear();
                }
            }
            m_buttons = null;

            base.Dispose(disposing);
        }
Ejemplo n.º 3
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        protected override void Dispose(bool disposing)
        {
            //Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************");
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
                if (m_buttons != null)
                {
                    m_buttons.Clear();
                }
            }
            m_buttons = null;

            base.Dispose(disposing);
        }
		/// <summary>
		///     <para>
		///       Initializes a new instance of <see cref='SIL.FieldWorks.Common.Controls.InformationBarButtonCollection'/> based on another <see cref='SIL.FieldWorks.Common.Controls.InformationBarButtonCollection'/>.
		///    </para>
		/// </summary>
		/// <param name='value'>
		///       A <see cref='SIL.FieldWorks.Common.Controls.InformationBarButtonCollection'/> from which the contents are copied
		/// </param>
		public InformationBarButtonCollection(InformationBarButtonCollection value)
		{
			this.AddRange(value);
		}
			/// <summary>
			///
			/// </summary>
			/// <param name="mappings"></param>
			public InformationBarButtonEnumerator(InformationBarButtonCollection mappings)
			{
				this.temp = ((IEnumerable)(mappings));
				this.baseEnumerator = temp.GetEnumerator();
			}
		/// <summary>
		///     <para>
		///       Adds the contents of another <see cref='SIL.FieldWorks.Common.Controls.InformationBarButtonCollection'/> to the end of the collection.
		///    </para>
		/// </summary>
		/// <param name='value'>
		///    A <see cref='SIL.FieldWorks.Common.Controls.InformationBarButtonCollection'/> containing the objects to add to the collection.
		/// </param>
		/// <returns>
		///   <para>None.</para>
		/// </returns>
		/// <seealso cref='SIL.FieldWorks.Common.Controls.InformationBarButtonCollection.Add'/>
		public void AddRange(InformationBarButtonCollection value)
		{
			for (int i = 0; (i < value.Count); i = (i + 1))
			{
				this.Add(value[i]);
			}
		}
Ejemplo n.º 7
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		protected override void Dispose( bool disposing )
		{
			//Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************");
			// Must not be run more than once.
			if (IsDisposed)
				return;

			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
				if (m_buttons != null)
					m_buttons.Clear();
			}
			m_buttons = null;

			base.Dispose( disposing );
		}
Ejemplo n.º 8
0
 /// <summary>
 ///     <para>
 ///       Initializes a new instance of <see cref='T:SIL.FieldWorks.Common.Controls.InformationBarButtonCollection'/> based on another <see cref='T:SIL.FieldWorks.Common.Controls.InformationBarButtonCollection'/>.
 ///    </para>
 /// </summary>
 /// <param name='value'>
 ///       A <see cref='T:SIL.FieldWorks.Common.Controls.InformationBarButtonCollection'/> from which the contents are copied
 /// </param>
 public InformationBarButtonCollection(InformationBarButtonCollection value)
 {
     this.AddRange(value);
 }
Ejemplo n.º 9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="mappings"></param>
 public InformationBarButtonEnumerator(InformationBarButtonCollection mappings)
 {
     this.temp           = ((IEnumerable)(mappings));
     this.baseEnumerator = temp.GetEnumerator();
 }
Ejemplo n.º 10
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		protected override void Dispose(bool disposing)
		{
			System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
			// Must not be run more than once.
			if (IsDisposed)
				return;

			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
				if (m_buttons != null)
					m_buttons.Clear();
			}
			m_buttons = null;

			base.Dispose( disposing );
		}