Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NuGenCountDownBlock"/> class.
        /// </summary>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="timer"/> is <see langword="null"/>.</para>
        /// </exception>
        public NuGenCountDownBlock(NuGenCountDownSpan initialSpan, INuGenTimer timer)
        {
            if (timer == null)
            {
                throw new ArgumentNullException("timer");
            }

            _minutes     = initialSpan.Minutes;
            _seconds     = initialSpan.Seconds;
            _timer       = timer;
            _timer.Tick += _timer_Tick;
        }
		/// <summary>
		/// Initializes a new instance of the <see cref="NuGenCountDownBlock"/> class.
		/// </summary>
		/// <exception cref="ArgumentNullException">
		/// <para><paramref name="timer"/> is <see langword="null"/>.</para>
		/// </exception>
		public NuGenCountDownBlock(NuGenCountDownSpan initialSpan, INuGenTimer timer)
		{
			if (timer == null)
			{
				throw new ArgumentNullException("timer");
			}

			_minutes = initialSpan.Minutes;
			_seconds = initialSpan.Seconds;
			_timer = timer;
			_timer.Tick += _timer_Tick;
		}