Example #1
0
        public string GetKeyBindingName(string name)
        {
            var set = XMLKeyBinding.Element(name);

            if (set == null)
            {
                System.Collections.ArrayList names = new System.Collections.ArrayList()
                {
                };
                if (name == SettingConstants.SettingKeys.KeyBindFolder)
                {
                    return(GetKeyName(1));
                }
                else if (name == SettingConstants.SettingKeys.KeyBindOutline)
                {
                    return(GetKeyName(2));
                }
                else if (name == SettingConstants.SettingKeys.KeyBindEditorOutlineRight)
                {
                    return(GetKeyName(3));
                }
                else if (name == SettingConstants.SettingKeys.KeyBindRunExec)
                {
                    return(GetKeyName(4));
                }
                return(string.Empty);
            }
            else
            {
                KeyBindingSet keySet = new KeyBindingSet(set.Element("Key").Value);
                return(keySet.key);
            }
        }
Example #2
0
		public string GetKeyBindingName(string name)
		{
			var set = XMLKeyBinding.Element(name);
			if (set == null)
			{
				System.Collections.ArrayList names = new System.Collections.ArrayList() { };
				if (name == SettingConstants.SettingKeys.KeyBindFolder)
				{
					return GetKeyName(1);
				}
				else if (name == SettingConstants.SettingKeys.KeyBindOutline)
				{
					return GetKeyName(2);
				}
				else if (name == SettingConstants.SettingKeys.KeyBindEditorOutlineRight)
				{
					return GetKeyName(3);
				}
				else if (name == SettingConstants.SettingKeys.KeyBindRunExec)
				{
					return GetKeyName(4);
				}
				return string.Empty;
			}
			else
			{
				KeyBindingSet keySet = new KeyBindingSet(set.Element("Key").Value);
				return keySet.key;
			}
		}