Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NuGenSwitcherActionList"/> class.
        /// </summary>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="switcher"/> is <see langword="null"/>.</para>
        /// </exception>
        public NuGenSwitcherActionList(NuGenSwitcher switcher)
            : base(switcher)
        {
            if (switcher == null)
            {
                throw new ArgumentNullException("switcher");
            }

            _switcher = switcher;
            _switcher.SwitchPageRemoved += _switcher_SwitchPageRemoved;
        }
		/// <summary>
		/// Initializes a new instance of the <see cref="NuGenSwitcherActionList"/> class.
		/// </summary>
		/// <exception cref="ArgumentNullException">
		/// <para><paramref name="switcher"/> is <see langword="null"/>.</para>
		/// </exception>
		public NuGenSwitcherActionList(NuGenSwitcher switcher)
			: base(switcher)
		{
			if (switcher == null)
			{
				throw new ArgumentNullException("switcher");
			}

			_switcher = switcher;
			_switcher.SwitchPageRemoved += _switcher_SwitchPageRemoved;
		}