/// <summary>Define by string expression</summary> public MenuLine AddMenuLine(string name, MenuLine line) { var code = Event.GetPseudoCode(name); SetLocal(code, line); return(line); }
/// <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); }