lixiaojun
2024-10-18 1fe41eb1c9f2b2914b4a66a145f1ad0a75b9c915
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace Yw.WinFrmUI
{
    public partial class SetWaterboxCalcuPrefixCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public SetWaterboxCalcuPrefixCtrl()
        {
            InitializeComponent();
            this.layoutControl1.SetupLayoutControl();
        }
 
        //水箱
        private Yw.Model.HydroWaterboxInfo _waterbox = null;
 
        /// <summary>
        /// 绑定
        /// </summary>
        public void SetBindingData(Yw.Model.HydroWaterboxInfo waterbox)
        {
            this.txtPoolElev.EditValue = waterbox.PoolElev;
            this.txtInitLevel.EditValue = waterbox.InitLevel;
            this.txtMinLevel.EditValue = waterbox.MinLevel;
            this.txtMaxLevel.EditValue = waterbox.MaxLevel;
            this.txtMinVol.EditValue = waterbox.MinVol;
            this.btnEditVolCurve.EditValue = waterbox.VolCurve;
            this.ckOverFlow.Checked = waterbox.OverFlow;
        }
 
 
 
    }
}