public MenuDefinition(MenuBarDefinition menuBar, int sortOrder, string text) { MenuBar = menuBar; SortOrder = sortOrder; Text = text; IoC.RegisterConstant(this); }
public void BuildMenuBar(MenuBarDefinition menuBarDefinition, MenuModel result) { var menus = _menus .Where(x => x.MenuBar == menuBarDefinition) .OrderBy(x => x.SortOrder); foreach (var menu in menus) { var menuModel = new TextMenuItem(menu); AddGroupsRecursive(menu, menuModel); if (menuModel.Children.Any()) result.Add(menuModel); } }
public void BuildMenuBar(MenuBarDefinition menuBarDefinition, MenuModel result) { var menus = _menus .Where(x => x.MenuBar == menuBarDefinition) .OrderBy(x => x.SortOrder); foreach (var menu in menus) { var menuModel = new TextMenuItem(menu); AddGroupsRecursive(menu, menuModel); if (menuModel.Children.Any()) { result.Add(menuModel); } } }
public MenuDefinition(MenuBarDefinition menuBar, int sortOrder, string text) { MenuBar = menuBar; SortOrder = sortOrder; Text = text; }
public MenuDefinition(MenuBarDefinition menuBar, int sortOrder, string text) { _menuBar = menuBar; _sortOrder = sortOrder; _text = text; }