亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? navigationnodecollection.cs

?? ComponentArt Web.UI 2006.1252 for asp.net2.0
?? CS
字號:
using System;
using System.ComponentModel;
using System.Collections;


namespace ComponentArt.Web.UI
{
  /// <summary>
  /// Collection of NavigationNode objects. 
  /// </summary>
	[ToolboxItem(false)]
	public abstract class NavigationNodeCollection : IEnumerable, ICollection, IList
	{
    protected ArrayList nodeList;
    protected NavigationNode parentNode;
    protected BaseNavigator navigator;
    
		public NavigationNodeCollection(BaseNavigator oNavigator, NavigationNode oParent) 
		{
			parentNode = oParent;
      navigator = oNavigator;
			nodeList = new ArrayList();
		}
		
    internal NavigationNode this[int index] 
		{
			get 
			{
				return (NavigationNode)nodeList[index];
			}
		}

    object IList.this[int index] 
		{
			get 
			{
				return nodeList[index];
			}
			set 
			{
				nodeList[index] = (NavigationNode)value;
			}
		}
    
		internal int Add(NavigationNode item) 
		{
			if (item == null) 
			{
				throw new ArgumentNullException("item");
			}
			
			// Fix some pointers.
			item.parentNode = parentNode;
      item.navigator = navigator;
      
      if(item.parentNode != null && navigator == null)
      {
        item.navigator = item.parentNode.navigator;
      }
      
      if(nodeList.Count > 0)
      {
        item.previousSibling = (NavigationNode)nodeList[nodeList.Count - 1];
        ((NavigationNode)nodeList[nodeList.Count - 1]).nextSibling = item;
      }
      
			nodeList.Add(item);
			
			return nodeList.Count - 1;
		}
        
		public void Clear() 
		{
			nodeList.Clear();
		}
            
		internal bool Contains(NavigationNode item) 
		{
			if (item == null) 
			{
				return false;
			}
			return nodeList.Contains(item);
		}

		internal int IndexOf(NavigationNode item) 
		{
			if (item == null) 
			{
				throw new ArgumentNullException("item");
			}
			return nodeList.IndexOf(item);
		}

		internal void Insert(int index, NavigationNode item) 
		{
			if (item == null) 
			{
				throw new ArgumentNullException("item");
			}

      // Fix some pointers.
      item.parentNode = parentNode;
      item.navigator = navigator;
      
      if(item.parentNode != null && navigator == null)
      {
        item.navigator = item.parentNode.navigator;
      }
      
      if(nodeList.Count > 0)
      {
        item.previousSibling = (NavigationNode)nodeList[nodeList.Count - 1];
        ((NavigationNode)nodeList[nodeList.Count - 1]).nextSibling = item;
      }

			nodeList.Insert(index,item);
		}

		public void RemoveAt(int index) 
		{
      nodeList.RemoveAt(index);
		}
    
		internal void Remove(NavigationNode item) 
		{
			if (item == null) 
			{
				throw new ArgumentNullException("item");
			}

      if(item.previousSibling != null)
      {
        item.previousSibling.nextSibling = item.nextSibling;
      }
      if(item.nextSibling != null)
      {
        item.nextSibling.previousSibling = item.previousSibling;
      }

			int index = IndexOf(item);
			if (index >= 0) 
			{
				RemoveAt(index);
			}
		}

    /// <summary>
    /// Sort the nodes in this collection using the given node comparer.
    /// </summary>
    /// <param name="comparer">The IComparer to use for comparing nodes</param>
    /// <param name="bRecursive">Whether to sort all levels beneath this one</param>
    public void Sort(IComparer comparer, bool bRecursive)
    {
      nodeList.Sort(comparer);

      if(bRecursive)
      {
        foreach(NavigationNode oNode in nodeList)
        {
          oNode.nodes.Sort(comparer, true);
        }
      }
    }

    /// <summary>
    /// Sort the nodes in this collection by the given property.
    /// </summary>
    /// <param name="sPropertyName">The name of the property to sort by</param>
    /// <param name="bDescending">Whether to sort in a descending order</param>
    /// <param name="bNumeric">Whether to sort numerically instead of alphabetically (all values must be numbers)</param>
    /// <param name="bCaseSensitive">Whether to take case into account when sorting</param>
    /// <param name="bRecursive">Whether to recursively sort all levels beneath this one</param>
    public void Sort(string sPropertyName, bool bDescending, bool bNumeric, bool bCaseSensitive, bool bRecursive)
    {
      this.Sort(new CustomComparer(sPropertyName, bDescending, bNumeric, bCaseSensitive), bRecursive);
    }

    /// <summary>
    /// Sort the nodes in this collection by the given property.
    /// </summary>
    /// <param name="sPropertyName">The name of the property to sort by</param>
    /// <param name="bDescending">Whether to sort in a descending order</param>
    /// <param name="bNumeric">Whether to sort numerically instead of alphabetically (all values must be numbers)</param>
    /// <param name="bRecursive">Whether to recursively sort all levels beneath this one</param>
    public void Sort(string sPropertyName, bool bDescending, bool bNumeric, bool bRecursive)
    {
      this.Sort(sPropertyName, bDescending, bNumeric, true, bRecursive);
    }

    /// <summary>
    /// Sort the nodes in this collection by the given property.
    /// </summary>
    /// <param name="sPropertyName">The name of the property to sort by</param>
    /// <param name="bDescending">Whether to sort in a descending order</param>
    /// <param name="bRecursive">Whether to recursively sort all levels beneath this one</param>
    public void Sort(string sPropertyName, bool bDescending, bool bRecursive)
    {
      this.Sort(sPropertyName, bDescending, false, bRecursive);
    }

    /// <summary>
    /// Sort the nodes in this collection by the given property.
    /// </summary>
    /// <param name="sPropertyName">The name of the property to sort by</param>
    /// <param name="bDescending">Whether to sort in a descending order</param>
    public void Sort(string sPropertyName, bool bDescending)
    {
      this.Sort(sPropertyName, bDescending, false);
    }

    /// <summary>
    /// Sort the nodes in this collection by Text, ascending.
    /// </summary>
    public void Sort()
    {
      this.Sort("Text", false);
    }

    #region CustomComparer (sorting)

    private class CustomComparer : IComparer  
    {
      private string PropertyName;
      private bool Reverse;
      private bool Numeric;
      private bool CaseSensitive;


      public CustomComparer(string sPropertyName, bool bReverse, bool bNumeric, bool bCaseSensitive)
      {
        PropertyName = sPropertyName;
        Reverse = bReverse;
        Numeric = bNumeric;
        CaseSensitive = bCaseSensitive;
      }

      int IComparer.Compare( Object a, Object b )  
      {
        string sA = ((NavigationNode)a).Properties[PropertyName];
        string sB = ((NavigationNode)b).Properties[PropertyName];

        // Do we need to reverse?
        if(Reverse)
        {
          string sTemp = sA;
          sA = sB;
          sB = sTemp;
        }

        // Do we need to desensitize?
        if(!CaseSensitive)
        {
          sA = sA.ToLower();
          sB = sB.ToLower();
        }

        if(Numeric)
        {
          return int.Parse(sA) - int.Parse(sB);
        }
        else
        {
          return string.Compare(sA, sB);
        }
      }
    }

    #endregion

    #region IEnumerable Implementation
		public IEnumerator GetEnumerator() 
		{
			return nodeList.GetEnumerator();
		}
        #endregion IEnumerable Implementation

    #region ICollection Implementation
    
		[
		Browsable(false),
		DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)
		]
		public int Count 
		{
			get 
			{
				return nodeList.Count;
			}
		}

		public void CopyTo(Array array, int index) 
		{
			nodeList.CopyTo(array,index);
		}

		[
		Browsable(false),
		DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)
		]
		public bool IsSynchronized 
		{
			get 
			{
				return true;
			}
		}

		[
		Browsable(false),
		DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)
		]
		public object SyncRoot 
		{
			get 
			{
				return nodeList.SyncRoot;
			}
		}
        #endregion ICollection Implementation

    #region IList Implementation
   
		bool IList.IsFixedSize 
		{
			get 
			{
				return false;
			}
		}

		bool IList.IsReadOnly 
		{
			get 
			{
				return false;
			}
		}

		int IList.Add(object item) 
		{
			if (item == null) 
			{
				throw new ArgumentNullException("item");
			}
			if (!(item is NavigationNode)) 
			{
				throw new ArgumentException("item must be a NavigationNode");
			}

			return Add((NavigationNode)item);
		}

		void IList.Clear() 
		{
			Clear();
		}

		bool IList.Contains(object item) 
		{
			return Contains(item as NavigationNode);
		}

		int IList.IndexOf(object item) 
		{
			if (item == null) 
			{
				throw new ArgumentNullException("item");
			}
			if (!(item is NavigationNode)) 
			{
				throw new ArgumentException("item must be a NavigationNode");
			}

			return IndexOf((NavigationNode)item);
		}

		void IList.Insert(int index, object item) 
		{
			if (item == null) 
			{
				throw new ArgumentNullException("item");
			}
			if (!(item is NavigationNode)) 
			{
				throw new ArgumentException("item must be a NavigationNode");
			}

			Insert(index, (NavigationNode)item);
		}

		void IList.Remove(object item) 
		{
			if (item == null) 
			{
				throw new ArgumentNullException("item");
			}
			if (!(item is NavigationNode)) 
			{
				throw new ArgumentException("item must be a NavigationNode");
			}

			Remove((NavigationNode)item);
		}

		void IList.RemoveAt(int index) 
		{
			RemoveAt(index);
		}
        #endregion IList Implementation
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩久久精品一区| 91国偷自产一区二区三区成为亚洲经典| 欧美三级资源在线| 亚洲午夜免费福利视频| 欧洲精品在线观看| 亚洲成av人片在线| 91精品国产麻豆| 狠狠色丁香婷综合久久| 国产精品三级在线观看| 26uuu久久综合| av资源网一区| 丝袜亚洲另类欧美| 精品动漫一区二区三区在线观看| 福利视频网站一区二区三区| 亚洲三级在线免费| 91精品国产色综合久久| 国产精品一区免费视频| 亚洲免费毛片网站| 欧美成人bangbros| 欧洲色大大久久| 欧美日韩免费视频| 精品伊人久久久久7777人| ...xxx性欧美| 一本一本久久a久久精品综合麻豆| 午夜视频久久久久久| 欧美videos中文字幕| 99re6这里只有精品视频在线观看| 亚洲永久免费av| 2024国产精品| 欧美综合天天夜夜久久| 精品一区二区三区在线视频| 亚洲免费色视频| 精品国产123| 91福利国产精品| 国产精品一区不卡| 日韩福利视频导航| 亚洲欧洲精品一区二区三区不卡| 制服丝袜日韩国产| 99久久精品国产一区| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产精品麻豆久久久| 欧美刺激午夜性久久久久久久| gogo大胆日本视频一区| 精品一二三四区| 亚洲一区二区三区爽爽爽爽爽| 日韩成人一区二区三区在线观看| 亚洲国产激情av| 欧美成人女星排行榜| 欧美亚洲动漫精品| 成人av资源站| 韩国精品主播一区二区在线观看 | 五月天网站亚洲| 国产精品午夜电影| 久久久久综合网| 在线91免费看| 欧美亚洲高清一区| 91麻豆123| 91视频xxxx| 99久久久无码国产精品| 国产福利91精品一区二区三区| 青青草91视频| 青椒成人免费视频| 男人的天堂久久精品| 亚洲综合免费观看高清完整版在线| 欧美激情一区三区| 久久久精品免费免费| 精品国产乱码久久久久久免费 | 91麻豆精品久久久久蜜臀| 久久久99精品久久| 欧美一级精品在线| 欧美一区二区三区视频在线观看| 欧美日韩mp4| 69堂国产成人免费视频| 欧美挠脚心视频网站| 欧美在线免费观看视频| 91丝袜美腿高跟国产极品老师 | 在线观看亚洲a| 色吧成人激情小说| 日本久久精品电影| 欧美综合一区二区三区| 欧美日韩亚洲高清一区二区| 色噜噜狠狠成人网p站| 欧美体内she精视频| 欧美日韩和欧美的一区二区| 欧美日韩电影在线播放| 制服丝袜av成人在线看| 日韩欧美久久久| 欧美精品一区二区久久久| 国产亚洲欧洲一区高清在线观看| 日本一区二区免费在线 | 色婷婷久久久综合中文字幕| 色婷婷国产精品| 欧美高清激情brazzers| 欧美电影免费观看高清完整版在 | 日韩精品一区在线| 中文字幕不卡的av| 一区二区三区四区精品在线视频| 夜夜精品视频一区二区| 日本成人中文字幕| 国产成人免费视| 91视频.com| 日韩一级片在线观看| 国产欧美日韩另类一区| 亚洲精品亚洲人成人网| 日日摸夜夜添夜夜添精品视频| 久久99九九99精品| av在线播放成人| 在线综合视频播放| 国产欧美日本一区视频| 亚洲成av人片一区二区| 久久99国产精品麻豆| 成人av电影在线播放| 欧美日韩国产影片| 国产午夜精品一区二区| 亚洲国产综合色| 国产精品一二三| 欧美日韩午夜影院| 久久久久国产精品免费免费搜索| 亚洲精品国久久99热| 久久99热国产| 在线一区二区三区| 国产欧美日韩不卡| 蜜臀久久久久久久| 色综合色综合色综合| 2023国产精品自拍| 亚洲高清在线精品| www.色综合.com| 精品国产网站在线观看| 亚洲在线中文字幕| 国产91在线看| 欧美一级午夜免费电影| 玉米视频成人免费看| 国产精品白丝jk白祙喷水网站| 欧美色中文字幕| 国产精品高潮呻吟久久| 久久99精品网久久| 欧美人与z0zoxxxx视频| 综合婷婷亚洲小说| 国产成人高清在线| 欧美va亚洲va在线观看蝴蝶网| 亚洲成a人片综合在线| 不卡的av在线播放| 国产日本一区二区| 久久99国产精品久久99| 欧美一区二区三区免费视频| 亚洲综合一区二区| 91丨九色丨国产丨porny| 欧美国产精品一区| 国产成人精品影院| 久久女同互慰一区二区三区| 美女任你摸久久| 91精品婷婷国产综合久久竹菊| 亚洲精品视频在线看| jlzzjlzz亚洲日本少妇| 欧美韩国日本综合| 国产精品一区二区你懂的| 久久影视一区二区| 韩国女主播一区| 久久久精品国产免大香伊| 韩国视频一区二区| 2023国产精品自拍| 国产成人午夜视频| 久久久久久久综合色一本| 国内精品视频666| 久久免费午夜影院| 国产在线视频精品一区| 久久久精品免费观看| 国产乱码精品1区2区3区| 国产日韩精品一区| 高清不卡在线观看av| 中文字幕在线观看不卡视频| 成人av一区二区三区| 亚洲欧美日韩精品久久久久| 色欧美日韩亚洲| 亚洲成国产人片在线观看| 欧美一区二区私人影院日本| 毛片一区二区三区| 精品福利在线导航| 高清日韩电视剧大全免费| 国产精品人人做人人爽人人添| 99精品国产99久久久久久白柏| 一区二区三区小说| 欧美日本韩国一区二区三区视频| 男男视频亚洲欧美| 国产情人综合久久777777| 91一区二区三区在线观看| 亚洲黄色录像片| 欧美一卡二卡三卡四卡| 国产aⅴ综合色| 一区二区三区久久| 欧美一区二区三区啪啪| 国产精品18久久久久久久网站| 国产精品色眯眯| 欧美日韩午夜在线| 国产一区二区三区不卡在线观看 | 亚洲免费观看在线观看| 欧美日韩精品三区| 国产老女人精品毛片久久| √…a在线天堂一区| 91精品国产91热久久久做人人|