| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | public event Func<UpdatePumpGroupDto, Task<bool>> ReloadDataEvent = null; |
| | | public event Func<Vmo.PumpGroup, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | private UpdatePumpGroupDto _UpdataePumpGroupDto = null; |
| | | private Vmo.PumpGroup _UpdataePumpGroupDto = null; |
| | | |
| | | public async void SetBindingData(long ID) |
| | | { |
| | | var GroupDto = await new BLL.PumpGroup().GetByID(ID); |
| | | _UpdataePumpGroupDto = GroupDto.Adapt<PumpGroupDto, UpdatePumpGroupDto>(); |
| | | _UpdataePumpGroupDto = GroupDto; |
| | | this.NameTextEdit.Text = _UpdataePumpGroupDto.Name; |
| | | this.DescriptionTextEdit.Text = _UpdataePumpGroupDto.Description; |
| | | this.TagNameTextEdit.Text = _UpdataePumpGroupDto.TagName; |