| | |
| | | _allBindingList = new List<CompressorCoefficientViewModel>(); |
| | | if (alllist != null) |
| | | { |
| | | foreach (var item in alllist) |
| | | foreach (var item in alllist) |
| | | { |
| | | _allBindingList.Add(new CompressorCoefficientViewModel(item)); |
| | | } |
| | | } |
| | | this.sysPropChoiceViewModelBindingSource.DataSource = _allBindingList; |
| | | this.sysPropChoiceViewModelBindingSource.ResetBindings(false); |
| | | this.compressorCoefficientViewModelBindingSource.DataSource = _allBindingList; |
| | | this.compressorCoefficientViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | |
| | | //完成 |
| | |
| | | return; |
| | | if (e.Column == this.ColDelete) |
| | | _allBindingList.Remove(row); |
| | | this.sysPropChoiceViewModelBindingSource.DataSource = _allBindingList; |
| | | this.sysPropChoiceViewModelBindingSource.ResetBindings(false); |
| | | this.compressorCoefficientViewModelBindingSource.DataSource = _allBindingList; |
| | | this.compressorCoefficientViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | } |
| | | } |