⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orgnodetypecollection.cs

📁 r r
💻 CS
字号:
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.Design;
using System.ComponentModel;
using System.Drawing;
using System.Collections;

namespace wssmax
{
	/// <summary>
	/// OrgNodeTypeCollection 的摘要说明。
	/// </summary>
	public class OrgNodeTypeCollection:CollectionBase 
	{
		private object ObjectOrgNodeTypeCollection;


		public OrgNodeTypeCollection()
		{
			this.ObjectOrgNodeTypeCollection = null;
		}
 
		public OrgNodeTypeCollection(object parent)
		{
			this.ObjectOrgNodeTypeCollection = parent;
		}
 
		private void InitOrgNodeTypeCollection(OrgNodeType type1)
		{
			type1.ObjectOrgNodeType = this.Parent;
		}
 
		public void Add(OrgNodeType item)
		{
			base.List.Add(item);
		}
 
		public void AddAt(int index, OrgNodeType item)
		{
			base.List.Insert(index, item);
		}
 
		public bool Contains(OrgNodeType item)
		{
			return base.List.Contains(item);
		}
 
		public int IndexOf(OrgNodeType item)
		{
			return base.List.IndexOf(item);
		}
 
		protected override void OnInsert(int index, object value)
		{
			this.InitOrgNodeTypeCollection((OrgNodeType) value);
			base.OnInsert(index, value);
		}
 
		protected override void OnSet(int index, object oldValue, object newValue)
		{
			this.InitOrgNodeTypeCollection((OrgNodeType) newValue);
			base.OnSet(index, oldValue, newValue);
		}
 
		public void Remove(OrgNodeType item)
		{
			base.List.Remove(item);
		}
 
		public OrgNodeType this[int index]
		{
			get
			{
				return (OrgNodeType) base.List[index];
			}
		}
 
		public object Parent
		{
			get
			{
				return this.ObjectOrgNodeTypeCollection;
			}
			set
			{
				this.ObjectOrgNodeTypeCollection = value;
				if (value != null)
				{
					foreach (OrgNodeType type1 in base.List)
					{
						this.InitOrgNodeTypeCollection(type1);
					}
				}
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -