elementcontrols.cs
来自「破解的飞信源代码」· CS 代码 · 共 52 行
CS
52 行
namespace Imps.Client.Pc
{
using System;
using System.Collections;
using System.Reflection;
public class ElementControls : CollectionBase
{
public int Add(Element control)
{
return base.List.Add(control);
}
public void AddHead(Element control)
{
base.List.Insert(0, control);
}
public void Remove(Element control)
{
try
{
base.List.Remove(control);
}
catch
{
}
}
public Element Search(string name)
{
foreach (Element element in base.List)
{
if (element.NameID == name)
{
return element;
}
}
return null;
}
public Element this[int index]
{
get
{
return (base.List[index] as Element);
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?