public NavigationTreeNode(
            [NotNull] string name,
            [NotNull] INavigationItemHeader header,
            [NotNull] string navigationPageName,
            IEnumerable <INavigationTreeNode> childrens,
            int orderIndex)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }
            if (header == null)
            {
                throw new ArgumentNullException("header");
            }
            if (navigationPageName == null)
            {
                throw new ArgumentNullException("navigationPageName");
            }

            _name               = name;
            _header             = header;
            _orderIndex         = orderIndex;
            _navigationPageName = navigationPageName;
            _childrens          = (childrens ?? EmptyArray <INavigationTreeNode> .Value).ToArray().AsReadOnly();
        }
Exemplo n.º 2
0
		protected NavigationPageBase([NotNull] string name, [NotNull] INavigationItemHeader header)
		{
			if (name == null)
				throw new ArgumentNullException("name");
			if (header == null) 
				throw new ArgumentNullException("header");

			_name = name;
			_header = header;
		}
Exemplo n.º 3
0
        protected NavigationPageBase([NotNull] string name, [NotNull] INavigationItemHeader header)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }
            if (header == null)
            {
                throw new ArgumentNullException("header");
            }

            _name   = name;
            _header = header;
        }
Exemplo n.º 4
0
        public NavigationTreeNode(
            [NotNull] string name,
            [NotNull] INavigationItemHeader header,
            [NotNull] string navigationPageName,
            IEnumerable<INavigationTreeNode> childrens,
            int orderIndex)
        {
            if (name == null)
                throw new ArgumentNullException("name");
            if (header == null)
                throw new ArgumentNullException("header");
            if (navigationPageName == null)
                throw new ArgumentNullException("navigationPageName");

            _name = name;
            _header = header;
            _orderIndex = orderIndex;
            _navigationPageName = navigationPageName;
            _childrens = (childrens ?? EmptyArray<INavigationTreeNode>.Value).ToArray().AsReadOnly();
        }