| | |
| | | this.menuViewModelBindingSource.DataSource = _allBindingList; |
| | | this.menuViewModelBindingSource.ResetBindings(false); |
| | | // this.treeList1.ForceInitialize(); |
| | | //this.treeList1.CollapseAll(); |
| | | this.treeList1.ExpandAll(); |
| | | } |
| | | |
| | | public override void VerifyAuth() |
| | |
| | | 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; |