public void RenderMenus() { var fileMenus = _container.ResolveNamed <IEnumerable <IMenuDef> >("filemenu"); MenuBuilder.InsertMenuItems(_form.menuItemFile, _resourceManager, fileMenus, 0); var viewmenus = _container.ResolveNamed <IEnumerable <IMenuDef> >("viewmenu"); MenuBuilder.InsertMenuItems(_form.menuItemFile, _resourceManager, viewmenus, 0); var toolmenus = _container.ResolveNamed <IEnumerable <IMenuDef> >("toolmenu"); MenuBuilder.InsertMenuItems(_form.menuItemFile, _resourceManager, toolmenus, 0); var windowmenus = _container.ResolveNamed <IEnumerable <IMenuDef> >("windowmenu"); MenuBuilder.InsertMenuItems(_form.menuItemFile, _resourceManager, windowmenus, 0); var editmenus = _container.ResolveNamed <IEnumerable <IMenuDef> >("editmenu"); MenuBuilder.InsertMenuItems(_form.mainMenu, _resourceManager, toolmenus, 1); var othermenus = _container.ResolveNamed <IEnumerable <IMenuDef> >("othermenu"); MenuBuilder.AppendMenuItems(_form.mainMenu, _resourceManager, othermenus); var helpmenus = _container.ResolveNamed <IEnumerable <IMenuDef> >("helpmenu"); MenuBuilder.AppendMenuItems(_form.mainMenu, _resourceManager, helpmenus); }