| | |
| | | this.PageTitle.HeaderSvgImage = this.svgImage32[1]; |
| | | this.PageTitle.SvgImageSize = new Size(24, 24); |
| | | this.typeTreeListCtrl2.FocusedChangedEvent += TypeTreeListCtrl2_FocusedChangedEvent; |
| | | |
| | | } |
| | | |
| | | private List<SysCatalogViewModel> _allBindingList = null; |
| | |
| | | { |
| | | var dlg = new AddSysCatalogDlg(); |
| | | var typeID = this.typeTreeListCtrl2.GetCurrentID(); |
| | | if (typeID == 0) |
| | | return; |
| | | dlg.SetBindingData(typeID); |
| | | dlg.ReloadDataEvent += async (rhs) => |
| | | { |
| | |
| | | } |
| | | if (MessageBoxHelper.IsClickOk($"确认删除数据行?", "提示")) |
| | | return; |
| | | try |
| | | { |
| | | var result = await _bll.DeleteByID(currentVm.ID); |
| | | if (result) |
| | | { |
| | |
| | | return; |
| | | } |
| | | } |
| | | catch (Yw.Dto.InternalException ex) |
| | | { |
| | | MessageBoxHelper.ShowError(ex.ErrorMsg); |
| | | } |
| | | } |
| | | |
| | | //相应属性编辑 |
| | | private async void BtnPropEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |