Source/ShortcutCollection.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace DevComponents.DotNetBar
{
using System;
using System.Collections;
/// <summary>
/// Summary description for ShortcutList.
/// </summary>
public class ShortcutsCollection:System.Collections.CollectionBase
{
private BaseItem m_Parent=null;
public ShortcutsCollection(BaseItem parent)
{
m_Parent=parent;
}
public int Add(eShortcut key)
{
int iRet=0;
iRet=List.Add(key);
return iRet;
}
protected override void OnInsertComplete(int index,object value)
{
base.OnInsertComplete(index,value);
RefreshOwnerShortcuts();
}
public eShortcut this[int index]
{
get {return (eShortcut)(List[index]);}
set {List[index] = value;}
}
public void Insert(int index, eShortcut value)
{
List.Insert(index, value);
RefreshOwnerShortcuts();
}
public int IndexOf(eShortcut value)
{
return List.IndexOf(value);
}
public string ToString(string Delimiter)
{
if(List.Count==0)
return "";
System.Text.StringBuilder sb=new System.Text.StringBuilder(List.Count*(2+Delimiter.Length));int c=List.Count-1;
for(int i=0;i<c;i++)
sb.Append(((int)List[i]).ToString()+Delimiter);
sb.Append(((int)List[c]).ToString());
return sb.ToString();
}
public void FromString(string Data, string Delimiter)
{
List.Clear();
string[] str=Data.Split(Delimiter.ToCharArray());
后面还有 69 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。