/// <summary>Show the first menu.</summary>
        /// <param name="menuName">The first main's name</param>
        /// <param name="title">Menu title</param>
        public async Task DisplayMenuAsync(string menuName, string title)
        {
            if (_dependenciesAdded == false)
            {
                AddDependencies(null);
            }

            await _menuController.DisplayMenuAsync(menuName, title);
        }
        public async Task <ConsoleMenuItemResponse> WorkAsync()
        {
            await _menuController.DisplayMenuAsync("Hello2", "Hello Two", BreadCrumbType.Concatenate);

            return(await Task.FromResult(new ConsoleMenuItemResponse(false, true)));
        }
Exemple #3
0
        public async Task <ConsoleMenuItemResponse> WorkAsync()
        {
            await _controller.DisplayMenuAsync(_menu, _title, _breadCrumbType);

            return(new ConsoleMenuItemResponse(false, true));
        }