lixiaojun
2024-11-04 3effbd15ec04bbc39514c6904fa71d00631c96eb
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
43
44
45
46
47
48
49
50
51
52
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 扩散器视图
    /// </summary>
    public class HydroEmitterViewModel : HydroJunctionViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public HydroEmitterViewModel() : base() { }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroEmitterViewModel(Yw.Model.HydroEmitterInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo)
        {
            this.Coefficient = rhs.Coefficient;
            this.UpdatePropStatus(nameof(this.Coefficient), rhs, nameof(rhs.Coefficient));
 
            this.Vmo = rhs;
        }
 
        /// <summary>
        /// 喷射系数
        /// </summary>
        [Category("数据")]
        [DisplayName("喷射系数")]
        [PropertyOrder(1001)]
        [Browsable(true)]
        public virtual double Coefficient { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        [Browsable(false)]
        public new Yw.Model.HydroEmitterInfo Vmo { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        public override void Update()
        {
            base.Update();
            this.Coefficient = this.Vmo.Coefficient;
            this.UpdatePropStatus(nameof(this.Coefficient), this.Vmo, nameof(this.Vmo.Coefficient));
        }
 
 
 
    }
}