文件名从 WinFrmUI/HStation.WinFrmUI.WE.Core/新文件夹/01-catalogue/EditCatalogueDlg.cs 修改 |
| | |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | } |
| | | |
| | | public event Func<Vmo.WE.CatalogueDlgVmo, object, Task<bool>> ReloadDataEvent = null; |
| | | public event Func<Vmo.WE.CatalogueVmo, object, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | private Vmo.WE.CatalogueDlgVmo _CatalogueDlg = null; |
| | | private List<CatalogueDlgViewModel> _CatalogueDlgViews; |
| | | private Vmo.WE.CatalogueVmo _CatalogueDlg = null; |
| | | private List<CatalogueViewModel> _CatalogueDlgViews; |
| | | |
| | | public async void SetBindingData(Vmo.WE.CatalogueDlgVmo seriesVmo) |
| | | public async void SetBindingData(Vmo.WE.CatalogueVmo seriesVmo) |
| | | { |
| | | _CatalogueDlgViews = new List<CatalogueDlgViewModel>(); |
| | | _CatalogueDlgViews = new List<CatalogueViewModel>(); |
| | | _CatalogueDlg = seriesVmo; |
| | | this.NameTextEdit.Text = _CatalogueDlg.Name; |
| | | this.DescriptionTextEdit.Text = _CatalogueDlg.Description; |
| | | this.TagNameTextEdit.Text = _CatalogueDlg.TagName; |
| | | var allList = await new BLL.WE.CatalogueDlg().GetAll(); |
| | | var allList = await new BLL.WE.Catalogue().GetAll(); |
| | | foreach (var item in allList) |
| | | { |
| | | _CatalogueDlgViews.Add(new CatalogueDlgViewModel(item)); |
| | | _CatalogueDlgViews.Add(new CatalogueViewModel(item)); |
| | | } |
| | | treeListLookUpEdit1TreeList.DataSource = _CatalogueDlgViews; |
| | | if (_CatalogueDlg.ParentIds.Count > 0) |