コード例 #1
0
			public ShortcutsCollection Shortcuts()
			{
				ShortcutsCollection sl=new ShortcutsCollection(null);
				foreach(NameValue nv in this.CheckedItems)
					sl.Add(nv.Key);
				return sl;
			}
コード例 #2
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;
		}