Beispiel #1
0
 /// <summary>
 /// Adds a ProgressControl to the form
 /// </summary>
 /// <param name="counter">
 /// The progress counter to represent on the control.
 /// </param>
 internal void AddControl( ProgressCounter counter )
 {
     ProgressControl control = new ProgressControl( counter );
     control.Name = counter.Narrative;
     control.Left = 0;
     control.Top = _topPosition;
     control.Width = this.Width;
     _topPosition += control.Height;
     this.Controls.Add( control );
 }
Beispiel #2
0
        /// <summary>
        /// Adds a ProgressControl to the form
        /// </summary>
        /// <param name="counter">
        /// The progress counter to represent on the control.
        /// </param>
        internal void AddControl(ProgressCounter counter)
        {
            ProgressControl control = new ProgressControl(counter);

            control.Name  = counter.Narrative;
            control.Left  = 0;
            control.Top   = _topPosition;
            control.Width = this.Width;
            _topPosition += control.Height;
            this.Controls.Add(control);
        }