public void Select(string name, string path = null) { if (name == null) { name = string.Empty; } if (!_subMenus.TryGetValue(name, out var subMenu)) { throw new InvalidOperationException($"Cannot find a menu with name '{name}'."); } _selectedMenu = subMenu; _selectedMenu.Select(path); }
public Task <HandlerResult> Select() { return(_selectedMenu.Select()); }