using System.ComponentModel;
namespace DevComponents.DotNetBar
{
using System;
using System.Collections;
///
/// Summary description for ShortcutList.
///
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