From 9eb94e9eec2e2e164698e34d0481d66093c8655b Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期三, 15 一月 2025 17:40:55 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuMgrPage.cs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuMgrPage.cs b/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuMgrPage.cs index 436ee2f..24a0408 100644 --- a/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuMgrPage.cs +++ b/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuMgrPage.cs @@ -47,7 +47,7 @@ this.menuViewModelBindingSource.DataSource = _allBindingList; this.menuViewModelBindingSource.ResetBindings(false); // this.treeList1.ForceInitialize(); - //this.treeList1.CollapseAll(); + this.treeList1.ExpandAll(); } public override void VerifyAuth() @@ -65,11 +65,11 @@ dlg.SetBindingData(row != null ? row.ID : 0); dlg.ReloadDataEvent += async (rhs) => { - var id = await _bll.Insert(rhs); + var id = await _bll.Insert(rhs.ProjectMenu); if (id > 0) { - rhs.ID = id; - this._allBindingList.Add(new MenuViewModel(rhs)); + rhs.ProjectMenu.ID = id; + this._allBindingList.Add(new MenuViewModel(rhs.ProjectMenu)); this.menuViewModelBindingSource.ResetBindings(false); //this.treeList1.Refresh(); return true; -- Gitblit v1.9.3