| | |
| | | _allBindingList.Add(new ExchangerCoefficientViewModel(item)); |
| | | } |
| | | } |
| | | this.sysPropChoiceViewModelBindingSource.DataSource = _allBindingList; |
| | | this.sysPropChoiceViewModelBindingSource.ResetBindings(false); |
| | | this.exchangerCoefficientViewModelBindingSource.DataSource = _allBindingList; |
| | | this.exchangerCoefficientViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | |
| | | //完成 |
| | |
| | | var allList = new List<Vmo.AssetsExchangerCoefficientVmo>(); |
| | | foreach (var item in _allBindingList) |
| | | { |
| | | allList.Add(new Vmo.AssetsExchangerCoefficientVmo { ID = item.ID, Name = item.Name, Caliber = item.Caliber, Material = item.Material, MinorLoss = item.MinorLoss }); |
| | | allList.Add(new Vmo.AssetsExchangerCoefficientVmo { ID = item.ID, Name = item.Name, Material = item.Material, MinorLoss = item.MinorLoss }); |
| | | } |
| | | if (await _bll.DeleteAll()) |
| | | { |
| | |
| | | return; |
| | | if (e.Column == this.ColDelete) |
| | | _allBindingList.Remove(row); |
| | | this.sysPropChoiceViewModelBindingSource.DataSource = _allBindingList; |
| | | this.sysPropChoiceViewModelBindingSource.ResetBindings(false); |
| | | this.exchangerCoefficientViewModelBindingSource.DataSource = _allBindingList; |
| | | this.exchangerCoefficientViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | } |
| | | } |