| | |
| | | /// </summary> |
| | | public override async void InitialDataSource() |
| | | { |
| | | var allList = await new Yw.BLL.ProjectMenu().GetByProjectID(GlobalParas._GlobalParas.ProjectID); |
| | | var allList = await new Yw.BLL.ProjectMenu().GetByProjectID(LoginUserInfo.ProjectID); |
| | | _allBindingList = new List<MenuViewModel>(); |
| | | if (allList != null) |
| | | { |
| | |
| | | var id = await _bll.InsertEx(rhs); |
| | | if (id > 0) |
| | | { |
| | | rhs.ProjectMenu.ID = id; |
| | | this._allBindingList.Add(new MenuViewModel(rhs.ProjectMenu)); |
| | | rhs.ID = id; |
| | | this._allBindingList.Add(new MenuViewModel(rhs)); |
| | | this.menuViewModelBindingSource.ResetBindings(false); |
| | | //this.treeList1.Refresh(); |
| | | return true; |