public void BuildMenus(IMenuBuilder builder) { builder.Menu("Management", "account_list").SetName("账户管理").SetUrl("/Accounts/Account/List").AddAccessPermission(Permissions.CreateAccount); builder.Menu("Management", "account_Password").SetName("密码安全").SetUrl("/Accounts/Account/Security"); // builder.Menu("Management", "account_list").SetName("账户申请管理").SetUrl("/Accounts/RegisterAccount/List") // .AddAccessPermission(Permissions.RegisterAccountManager); }
public void BuildMenus(IMenuBuilder builder) { builder.Group("Home").SetName("首页").SetOrder(0).SetUrl("/Core/Home/ManagerIndex"); builder.Group("Management").SetName("设置").SetOrder(4).SetUrl("/Core/Home/Index"); builder.Menu("Management", "Role").SetName("角色").SetUrl("/Core/Role/List").AddAccessPermission(Permissions.RoleManager); }
protected override void BuildAuxEditMenu(IMenuBuilder <MenuStrip> builder) { var sci = GetScintilla(); builder .Menu("&Outlining") .Item("&Toggle Outlining Expansion", "Ctrl+M", () => sci.ToggleFold(sci.CurrentLine)) .Item("&Collapse to Definitions", sci.CollapseAllFold) .Item("&Expand All Code", "Ctrl+Shift+M", sci.ExpandAllFold) .CloseMenu() .Menu("&Indentantion") .Item("&New Line with Indent", "Ctrl+Enter", Indent) .CloseMenu(); }
protected override void BuildAuxMenus(IMenuBuilder <MenuStrip> builder) { var sci = GetScintilla(); var rs = App.GetService <ICodeRunnerService>(); builder .Menu("&Code") .Item("&Find Symbol", "Alt+F12", ElaFuns.FindSymbol, () => sci.GetTextLength() > 0) .Item("&Autocomplete", "Ctrl+Space", ElaFuns.Autocomplete) .CloseMenu() .Menu("&Build") .Item("&Run", "F5", ElaFuns.Run, () => sci.GetTextLength() > 0 && !rs.IsRunning()) .Item("S&top Execution", "Shift+F5", () => rs.AbortExecution(), rs.IsRunning) .Separator() .Item("&Eval Selected", "Ctrl+F5", ElaFuns.RunSelected) .Item("Send &Selection to Interactive", "Ctrl+F6", ElaFuns.EvaluateSelected) .Item("Send Current &Module to Interactive", "Ctrl+F7", ElaFuns.EvaluateCurrentModule) .Separator() .Item("&Generate AST", ElaFuns.GenerateAst) .Item("Generate &EIL", ElaFuns.GenerateEil) .Item("Make &Object File", "Ctrl+F8", ElaFuns.MakeObjectFile) .CloseMenu(); }
public void BuildMenus(IMenuBuilder builder) { //builder.Group("Management").SetName("应用管理"); builder.Menu("Management", "Client").SetName("应用列表").SetUrl("/Authentication/Client/List") .AddAccessPermission(Permissions.ManagerClient); }