Esempio n. 1
0
        /// <summary>Define by string expression</summary>
        public MenuLine AddMenuLine(string name, MenuLine line)
        {
            var code = Event.GetPseudoCode(name);

            SetLocal(code, line);
            return(line);
        }
Esempio n. 2
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);
        }