Exemplo n.º 1
0
			public ShortcutsCollection Shortcuts()
			{
				ShortcutsCollection sl=new ShortcutsCollection(null);
				foreach(NameValue nv in this.CheckedItems)
					sl.Add(nv.Key);
				return sl;
			}
Exemplo n.º 2
0
 internal void Dispose()
 {
     this.m_Parent = null;
     this.DisableEvents();
     if (this.m_shortcuts != null)
     {
         this.m_shortcuts.Dispose();
         this.m_shortcuts = null;
     }
 }
Exemplo n.º 3
0
			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);
				}
			}
Exemplo n.º 4
0
 internal void Dispose()
 {
     this.m_Parent = null;
 }
Exemplo n.º 5
0
		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;
		}