private void method_8() { FormSplashHelper.MsgWait("正在准备系统主界面..."); base.WindowState = FormWindowState.Maximized; Rectangle rectangle = PropertyUtil.GetRectangle("Site", new Rectangle(10, 10, base.Width, base.Height)); rectangle.X = (rectangle.X < 100) ? 0 : rectangle.X; rectangle.Y = (rectangle.Y < 100) ? 0 : rectangle.Y; base.StartPosition = FormStartPosition.Manual; base.Bounds = rectangle; base.FormClosing += new FormClosingEventHandler(this.NormalMainForm_FormClosing); this.navigatePage_0 = new NavigatePage(); this.navigatePage_0.Dock = DockStyle.Left; base.Controls.Add(this.navigatePage_0); TreeLoader.Load(this.navigatePage_0, this.dockPanel1, "/Aisino/Tree", false); this.navigateToolScrip_0 = new NavigateToolScrip(); this.navigateToolScrip_0.Dock = DockStyle.Top; base.Controls.Add(this.navigateToolScrip_0); this.navigateToolScrip_0.Load(this.method_9("1"), this.navigatePage_0.Nodes); this.navigateToolScrip_0.ItemAdd += new EventHandler(this.navigateToolScrip_0_ItemAdd); this.contextMenuStrip_0 = new ContextMenuStrip(); MenuLoader.Load(this.contextMenuStrip_0.Items, this.dockPanel1, "/Aisino/Menu"); if (this.contextMenuStrip_0.Items.Count > 0) { base._menu = this.contextMenuStrip_0; } base.Controls.Add(base.statusStrip1); FormSplashHelper.MsgWait(); }
public ActionResult Menu() { var uId = UserInfo.Uid; var rId = UserInfo.UserRid; var menuLoader = new MenuLoader(); var model = menuLoader.Load(uId, rId).ToList(); return(PartialView("_Menu", model)); }
/// <summary> /// Загрузка главного меню игры. /// </summary> protected void LoadMenu() { Model = MenuLoader.Load(); if (View != null) { View.SendCameraSizeDelegateSending(Model.SetCameraSize); View.SendCameraSizeToModel(); } Model.ModelLogic.LoadAnotherModel += LoadAnotherModel; ((MenuLogic)Model.ModelLogic).CloseApplication += CloseApplication; }
private void method_8() { FormSplashHelper.MsgWait("正在准备系统主界面..."); base.WindowState = FormWindowState.Maximized; Rectangle rectangle = PropertyUtil.GetRectangle("Site", new Rectangle(10, 10, base.Width, base.Height)); rectangle.X = (rectangle.X < 100) ? 0 : rectangle.X; rectangle.Y = (rectangle.Y < 100) ? 0 : rectangle.Y; base.StartPosition = FormStartPosition.Manual; base.Bounds = rectangle; base.FormClosing += new FormClosingEventHandler(this.MDIMainForm_FormClosing); this.menuStrip_0 = new MenuStrip(); this.menuStrip_0.Font = new Font("黑体", 10f); MenuLoader.Load(this.menuStrip_0.Items, this, "/Aisino/Menu"); ToolStripMenuItem item2 = new ToolStripMenuItem { Name = "Menu_Help", Text = "帮助" }; ToolStripMenuItem item3 = new ToolStripMenuItem { Name = "Menu_Online", Text = "在线支持" }; item3.Click += new EventHandler(this.tsbOnline_Click); item2.DropDownItems.Add(item3); ToolStripMenuItem item4 = new ToolStripMenuItem { Name = "Menu_OnlineLogin", Text = "登录【增值税发票查询系统】" }; item4.Click += new EventHandler(this.method_14); item2.DropDownItems.Add(item4); ToolStripMenuItem item5 = new ToolStripMenuItem { Name = "Menu_Help", Text = "帮助" }; item5.Click += new EventHandler(this.tsbHelp_Click); item2.DropDownItems.Add(item5); ToolStripMenuItem item6 = new ToolStripMenuItem { Name = "Menu_AboutUS", Text = "关于" }; item6.Click += new EventHandler(this.method_15); item2.DropDownItems.Add(item6); this.menuStrip_0.Items.Add(item2); if (this.menuStrip_0.Items.Count > 0) { base.Controls.Add(this.menuStrip_0); base.MainMenuStrip = this.menuStrip_0; } base.Controls.Add(base.statusStrip1); this.list_1.Add("Menu.Xtsz"); this.list_1.Add("Menu.Xtsz.Bmgl"); this.list_1.Add("Menu.Fpgl"); this.list_1.Add("Menu.Fplygl"); this.list_1.Add("Menu.Hzfp"); this.list_1.Add("Menu.Bsgl"); this.list_1.Add("Menu.Bsgl.Jskgl"); this.list_1.Add("Menu.Bsgl.InvData"); this.list_1.Add("Menu.Xtwh"); this.list_1.Add("Menu.Wbjk"); foreach (ToolStripItem item in this.menuStrip_0.Items) { item.Image = null; MenuLabel label = item as MenuLabel; if ((label != null) && this.list_1.Contains(label.FunctionID)) { this.list_0.Add(label.FunctionID); } } FormSplashHelper.MsgWait(); this.tsbPublish.Visible = false; this.tsbPublish.Enabled = false; }