qin
2025-03-20 00ab1b5282ada6ffdc78b3dd46f0ce08726a51e6
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 弯头视图
    /// </summary>
    public class HydroElbowViewModel : HydroCouplingViewModel, IHydroCalcuElbowResult
    {
        /// <summary>
        /// 
        /// </summary>
        public HydroElbowViewModel() : base() { }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroElbowViewModel(Yw.Model.HydroElbowInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo)
        {
            this.BendingAngle = rhs.BendingAngle;
            this.ElbowType = rhs.ElbowType;
        }
 
        /// <summary>
        /// 弯曲角度
        /// </summary>
        [Category("数据")]
        [DisplayName("弯曲角度")]
        [PropertyOrder(101)]
        [DisplayUnit("°")]
        [Browsable(true)]
        public int BendingAngle { get; set; }
 
        /// <summary>
        /// 弯头类型
        /// </summary>
        [Category("数据")]
        [DisplayName("弯头类型")]
        [PropertyOrder(102)]
        [DisplayUnit("mm")]
        [Browsable(true)]
        public string ElbowType { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        [Browsable(false)]
        public new Yw.Model.HydroElbowInfo Vmo
        {
            get { return _vmo as Yw.Model.HydroElbowInfo; }
            set { _vmo = value; }
        }
 
        /// <summary>
        /// 
        /// </summary>
        public override void UpdateProperty()
        {
            base.UpdateProperty();
            this.BendingAngle = this.Vmo.BendingAngle;
            this.ElbowType = this.Vmo.ElbowType;
 
        }
 
        public override void UpdateVmoProperty()
        {
            base.UpdateVmoProperty();
            this.Vmo.BendingAngle = (int)this.BendingAngle;
            this.Vmo.ElbowType = this.ElbowType;
        }
 
 
 
    }
}