public ShortcutsCollection Shortcuts() { ShortcutsCollection sl=new ShortcutsCollection(null); foreach(NameValue nv in this.CheckedItems) sl.Add(nv.Key); return sl; }
internal void Dispose() { this.m_Parent = null; this.DisableEvents(); if (this.m_shortcuts != null) { this.m_shortcuts.Dispose(); this.m_shortcuts = null; } }
public ShortcutsListBox(ShortcutsCollection editingInstance):base() { // Load all shortcuts Array a=eShortcut.GetValues(typeof(eShortcut)); for(int i=1;i<a.Length;i++) { NameValue nv=new NameValue(eShortcut.GetName(typeof(eShortcut),a.GetValue(i)),(eShortcut)a.GetValue(i)); if(editingInstance.Contains((eShortcut)a.GetValue(i))) { this.Items.Add(nv,System.Windows.Forms.CheckState.Checked); } else this.Items.Add(nv,System.Windows.Forms.CheckState.Unchecked); } }
internal void Dispose() { this.m_Parent = null; }
private ShortcutsCollection FromString(string str) { ShortcutsCollection sl=new ShortcutsCollection(null); if(str=="" || str==null) return sl; string[] v=str.Split(','); for(int i=0;i<v.Length;i++) { sl.Add((eShortcut)eShortcut.Parse(typeof(eShortcut),v[i],true)); } return sl; }