| | |
| | | using Mapster; |
| | | using Yw.DAL.Basic; |
| | | using Yw.Dto; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class SetCompressorCoefficientDlg : DevExpress.XtraEditors.XtraForm |
| | | { |
| | |
| | | _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); |
| | | } |
| | | } |
| | | } |