| | |
| | | using Yw.WinFrmUI.Phart; |
| | | |
| | | namespace HStation.WinFrmUI.Xhs |
| | | namespace HStation.WinFrmUI.Xhs |
| | | { |
| | | public partial class SinglePumpAnalyInfoCtrl : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | |
| | | |
| | | this.colName.OptionsColumn.AllowEdit = false; |
| | | this.colName.OptionsColumn.ReadOnly = true; |
| | | this.colName.Visible = false; |
| | | |
| | | |
| | | this.colColor.OptionsColumn.AllowEdit = false; |
| | | this.colColor.OptionsColumn.ReadOnly = true; |
| | |
| | | this.colCurrentSpeed.OptionsColumn.ReadOnly = true; |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | /// </summary> |
| | | public event Action<double, double> SetDesignPointEvent; |
| | | |
| | | /// <summary> |
| | | /// 保存事件 |
| | | /// </summary> |
| | | public event Action<SinglePumpAnalyViewModel> SaveEvent; |
| | | |
| | | private List<SinglePumpAnalyViewModel> _all_binding_list = null; |
| | | |
| | | public void SetBindingData(List<SinglePumpAnalyViewModel> vm_list) |
| | |
| | | this.gridView2.BestFitColumns(); |
| | | this.gridView3.BestFitColumns(); |
| | | } |
| | | |
| | | |
| | | public void SetDesignPoint(double flow, double head) |
| | | { |
| | |
| | | this.SetDesignPointEvent?.Invoke(design_q, design_h); |
| | | } |
| | | |
| | | |
| | | private void btnSave_Click(object sender, EventArgs e) |
| | | { |
| | | if (XtraMessageBox.Show("是否保存数据?", "提示信息", MessageBoxButtons.YesNo, MessageBoxIcon.Information) != DialogResult.Yes) |
| | | return; |
| | | var vm = _all_binding_list.Last(); |
| | | this.SaveEvent?.Invoke(vm); |
| | | } |
| | | } |
| | | } |