private void RoleForm_Load(object sender, EventArgs e) { this.tvRole.Nodes.Clear(); TreeNode node = new TreeNode("角色"); this.tvRole.Nodes.Add(node); this.tvRolePerm.Nodes.Clear(); this.InitRoleTree(); if (node.Nodes.Count > 0) { TreeLoader.Load(this.tvRolePerm, this, "/Aisino/Menu", true); if (UserInfo.IsAdmin) { this.hasNewPermit = true; this.hasUpdPermit = true; this.hasDelPermint = true; } else { if (UserInfo.Gnqx != null) { this.funcIdList = UserInfo.Gnqx; } foreach (TreeNode node2 in this.tvRolePerm.Nodes) { this.RemoveUnPermNodes(node2); } this.ChangeRoleBtnState(); } this.tvRole.SelectedNode = node.Nodes[0]; } }
private void NewRoleForm_Load(object sender, EventArgs e) { this.tvFunc.Nodes.Clear(); TreeLoader.Load(this.tvFunc, this, "/Aisino/Menu", true); foreach (TreeNode node in this.tvFunc.Nodes) { if (node.Text == "系统维护") { foreach (TreeNode node2 in node.Nodes) { if (node2.Text == "用户权限设置") { this.tvFunc.Nodes.Remove(node2); break; } } } } if (!UserInfo.IsAdmin) { if (UserInfo.Gnqx != null) { this.funcIdList = UserInfo.Gnqx; } foreach (TreeNode node3 in this.tvFunc.Nodes) { this.RemoveUnPermNodes(node3); } } this.tvFunc.ExpandAll(); }
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 DockOutLookBar(object object_0) { this.InitializeComponent_1(); this.BackColor = Color.FromArgb(0xf3, 0xf3, 0xf3); TreeLoader.Load(this.outlookBar1, object_0, "/Aisino/Tree", false); this.bool_0 = this.outlookBar1.Nodes.Count > 0; }
public void TreeLoad() { this.lastTree1.Nodes.Clear(); TreeLoader.Load(this.lastTree1, this, "/Aisino/Tree", false); for (int i = this.lastTree1.Nodes.Count; i > 0; i--) { this.NodeEx(this.lastTree1.Nodes[i - 1]); } }
public static MvcHtmlString DisciplinesTreeFor <TModel>( this HtmlHelper <TModel> html, string collectionName, IEnumerable <DisciplineViewModel> all, IEnumerable <DisciplineViewModel> selected = null) { var treeLoader = new TreeLoader <int, DisciplineViewModel>( x => x.Id, x => x.ParentId); var treeBuilder = new DisciplinesCheckboxesTreeBuilder( collectionName, selected); return(treeBuilder.BuildHtmlTree(treeLoader.Load(all))); }
private void tvRole_AfterSelect(object sender, TreeViewEventArgs e) { TreeNode selectedNode = this.tvRole.SelectedNode; if (selectedNode.Tag is Role) { Role tag = (Role)selectedNode.Tag; if (tag.Name != "管理员") { this.tsbtnUpdRole.Enabled = true; this.tsbtnDelRole.Enabled = true; foreach (TreeNode node2 in this.tvRolePerm.Nodes) { if (node2.Text == "系统维护") { foreach (TreeNode node3 in node2.Nodes) { if (node3.Text == "用户权限设置") { this.tvRolePerm.Nodes.Remove(node3); break; } } } } } else { this.tsbtnUpdRole.Enabled = false; this.tsbtnDelRole.Enabled = false; this.tvRolePerm.Nodes.Clear(); TreeLoader.Load(this.tvRolePerm, this, "/Aisino/Menu", true); } this.FillRoleInfo((Role)selectedNode.Tag); this.CollapseUncheckedNodes(); } }
internal void method_3(object object_0) { this.TreeView1.Nodes.Clear(); TreeLoader.Load(this.TreeView1, object_0, "/Aisino/Tree", false); this.bool_0 = this.TreeView1.Nodes.Count > 0; }
public DockToolForm(object object_0) { this.InitializeComponent_1(); TreeLoader.Load(this.TreeView1, object_0, "/Aisino/Tree", false); this.bool_0 = this.TreeView1.Nodes.Count > 0; }
public void TreeLoad() { this.lastTree1.Nodes.Clear(); TreeLoader.Load(this.lastTree1, this, "/Aisino/Tree", false); }