lixiaojun
2024-12-05 f5cdfeae3594e3e6e1461300e93c266ce79c1a8a
WinFrmUI/HStation.WinFrmUI.Assets.Core/11-compressor/03-coefficient/SetCompressorCoefficientDlg.cs
@@ -1,8 +1,4 @@
using Mapster;
using Yw.DAL.Basic;
using Yw.Dto;
namespace HStation.WinFrmUI
namespace HStation.WinFrmUI
{
    public partial class SetCompressorCoefficientDlg : DevExpress.XtraEditors.XtraForm
    {
@@ -23,13 +19,13 @@
            _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);
        }
        //完成
@@ -76,8 +72,8 @@
                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);
        }
    }
}