Exemple #1
0
        /// <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);
        }
Exemple #2
0
        // ===============================================================================================
        // 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);
        }
Exemple #3
0
        // ===============================================================================================
        // Define the key binding recursively
        // ===============================================================================================
        /// <summary>Define list of key-strings. This way used for defining menu</summary>
        public bool DefinePseudo(string[] sequence, object value)
        {
            var newSequence = Kbd.ParsePseudo(sequence);

            return(Define(newSequence, value));
        }