/// <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); }
// =============================================================================================== // 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); }
/// <summary>Define by string expression</summary> public bool Define(string sequence, object value) { var newSequence = Kbd.ParseSequence(sequence); return(Define(newSequence, value)); }