예제 #1
0
파일: KeyMap.cs 프로젝트: hww/varp_keyboard
        /// <summary>Define by string expression with '/' separator</summary>
        public MenuLine DefineMenuLine(string path, MenuLine line)
        {
            var sequence    = path.Split('/');
            var newSequence = Kbd.ParsePseudo(sequence);

            Define(newSequence, line);
            return(line);
        }
예제 #2
0
파일: KeyMap.cs 프로젝트: hww/varp_keyboard
        // ===============================================================================================
        // Define menu map
        // ===============================================================================================
        /// <summary>Define list of key-strings. This way used for defining menu</summary>
        public KeyMap CreateMenu(string path, string title, string help)
        {
            var menu        = new KeyMap(title, help);
            var sequence    = path.Split('/');
            var newSequence = Kbd.ParsePseudo(sequence);

            Define(newSequence, menu);
            return(menu);
        }
예제 #3
0
파일: KeyMap.cs 프로젝트: hww/varp_keyboard
        /// <summary>Define by string expression</summary>
        public bool Define(string sequence, object value)
        {
            var newSequence = Kbd.ParseSequence(sequence);

            return(Define(newSequence, value));
        }