lixiaojun
2024-12-13 56f8d725e3e195a937da02aff340deeb32e6e5ac
WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/03-node/03-junction/01-coupling/00-core/HydroCouplingViewModel.cs
@@ -8,7 +8,7 @@
        /// <summary>
        /// 
        /// </summary>
        public HydroCouplingViewModel() : base() { }
        public HydroCouplingViewModel() { }
        /// <summary>
        /// 
@@ -19,8 +19,6 @@
            this.UpdatePropStatus(nameof(this.Material), rhs, nameof(rhs.Material));
            this.Caliber = rhs.Caliber;
            this.UpdatePropStatus(nameof(this.Caliber), rhs, nameof(rhs.Caliber));
            this.Vmo = rhs;
        }
@@ -29,7 +27,8 @@
        /// </summary>
        [Category("数据")]
        [DisplayName("材料")]
        [PropertyOrder(1001)]
        [Display(Name = "材料")]
        [PropertyOrder(3001)]
        [Browsable(true)]
        public string Material { get; set; }
@@ -38,8 +37,9 @@
        /// </summary>
        [Category("数据")]
        [DisplayName("口径")]
        [PropertyOrder(1002)]
        [Display(Name = "口径(mm)")]
        [DisplayUnit("mm")]
        [PropertyOrder(3002)]
        [Browsable(true)]
        public double? Caliber { get; set; }
@@ -47,21 +47,35 @@
        /// 
        /// </summary>
        [Browsable(false)]
        public new Yw.Model.HydroCouplingInfo Vmo { get; set; }
        public new Yw.Model.HydroCouplingInfo Vmo
        {
            get { return _vmo as Yw.Model.HydroCouplingInfo; }
            set { _vmo = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public override void Update()
        public override void UpdateProperty()
        {
            base.Update();
            base.UpdateProperty();
            this.Material = this.Vmo.Material;
            this.UpdatePropStatus(nameof(this.Material), this.Vmo, nameof(this.Vmo.Material));
            this.Caliber = this.Vmo.Caliber;
            this.UpdatePropStatus(nameof(this.Caliber), this.Vmo, nameof(this.Vmo.Caliber));
        }
        /// <summary>
        ///
        /// </summary>
        public override void UpdateVmoProperty()
        {
            base.UpdateVmoProperty();
            this.Vmo.Material = this.Material;
            this.Vmo.UpdatePropStatus(nameof(this.Vmo.Material), this, nameof(this.Material));
            this.Vmo.Caliber = this.Caliber;
            this.Vmo.UpdatePropStatus(nameof(this.Vmo.Caliber), this, nameof(this.Caliber));
        }