?? orgnodecollection.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>
/// OrgNodeCollection 的摘要說明。
/// </summary>
public class OrgNodeCollection:CollectionBase
{
private object ObjectOrgNodeCollection;
public OrgNodeCollection()
{
}
public OrgNodeCollection(object parent)
{
this.ObjectOrgNodeCollection = parent;
}
public OrgNode this[int index]
{
get
{
return (OrgNode) base.List[index];
}
}
public object Parent
{
get
{
return this.ObjectOrgNodeCollection;//object
}
set
{
this.ObjectOrgNodeCollection = value;//object
}
}
private void InitOrgNodeCollection(OrgNode node1)
{
node1.Parent = this.Parent;
}
protected override void OnSet(int index, object oldValue, object newValue)
{
this.InitOrgNodeCollection((OrgNode) newValue);
base.OnSet(index, oldValue, newValue);
}
public void Add(OrgNode item)
{
base.List.Add(item);
}
public void AddAt(int index, OrgNode item)
{
base.List.Insert(index, item);
}
public bool Contains(OrgNode item)
{
return base.List.Contains(item);
}
public int IndexOf(OrgNode item)
{
return base.List.IndexOf(item);
}
public void Remove(OrgNode item)
{
base.List.Remove(item);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -