duheng
2024-11-05 21dd2ae9704c484d5d75b2ed980e5402505da7dc
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
74
75
76
77
78
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 水力可见组件
    /// </summary>
    public class HydroVisualViewModel : HydroParterViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public HydroVisualViewModel() { }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroVisualViewModel(Yw.Model.HydroVisualInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo)
        {
            this.FlowDirection = rhs.FlowDirection;
            this.UpdatePropStatus(nameof(this.FlowDirection), rhs, nameof(rhs.FlowDirection));
            this.FlowDirectionX = rhs.FlowDirectionX;
            this.UpdatePropStatus(nameof(this.FlowDirectionX), rhs, nameof(rhs.FlowDirectionX));
            this.FlowDirectionY = rhs.FlowDirectionY;
            this.UpdatePropStatus(nameof(this.FlowDirectionY), rhs, nameof(rhs.FlowDirectionY));
 
            this.Vmo = rhs;
        }
 
        /// <summary>
        /// 流向
        /// </summary>
        [Category("拓扑结构")]
        [DisplayName("流向")]
        [PropertyOrder(101)]
        [Browsable(true)]
        public virtual int FlowDirection { get; set; }
 
        /// <summary>
        /// X流向
        /// </summary>
        [Category("拓扑结构")]
        [DisplayName("X流向")]
        [PropertyOrder(102)]
        [Browsable(true)]
        public virtual int FlowDirectionX { get; set; }
 
        /// <summary>
        /// Y流向
        /// </summary>
        [Category("拓扑结构")]
        [DisplayName("Y流向")]
        [PropertyOrder(103)]
        [Browsable(true)]
        public virtual int FlowDirectionY { get; set; }
 
        /// <summary>
        /// vmo
        /// </summary>
        [Browsable(false)]
        public new Yw.Model.HydroVisualInfo Vmo { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        public override void UpdateProperty()
        {
            base.UpdateProperty();
            this.FlowDirection = this.Vmo.FlowDirection;
            this.UpdatePropStatus(nameof(this.FlowDirection), this.Vmo, nameof(this.Vmo.FlowDirection));
            this.FlowDirectionX = this.Vmo.FlowDirectionX;
            this.UpdatePropStatus(nameof(this.FlowDirectionX), this.Vmo, nameof(this.Vmo.FlowDirectionX));
            this.FlowDirectionY = this.Vmo.FlowDirectionY;
            this.UpdatePropStatus(nameof(this.FlowDirectionY), this.Vmo, nameof(this.Vmo.FlowDirectionY));
        }
 
 
 
    }
}