コード例 #1
0
        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);
        }
コード例 #2
0
 public Task <HandlerResult> Select()
 {
     return(_selectedMenu.Select());
 }