cloudflight
2025-01-13 02c14c9c57dbde72d9c771bd8b0fab1cd023047d
WinFrmUI/Yw.WinFrmUI.Hydro.Core/01-scene/HydroSceneMgrViewModel.cs
@@ -13,16 +13,31 @@
        /// <summary>
        /// 
        /// </summary>
        public HydroSceneMgrViewModel(Yw.Dto.HydroSceneDto rhs)
        public HydroSceneMgrViewModel(Yw.Vmo.HydroSceneVmo rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Code = rhs.Code;
            this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.Dto = rhs;
            this.Vmo = rhs;
        }
        /// <summary>
        ///
        /// </summary>
        public void Reset(Yw.Vmo.HydroSceneVmo rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Code = rhs.Code;
            this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.Vmo = rhs;
        }
        /// <summary>
@@ -47,7 +62,7 @@
        /// 标签
        /// </summary>
        [Display(Name = "标签")]
        public string FlagsString { get; set; }
        public string Flags { get; set; }
        /// <summary>
        /// 标志
@@ -68,9 +83,9 @@
        public string Description { get; set; }
        /// <summary>
        /// Dto
        /// Vmo
        /// </summary>
        [Display(Name = "Dto")]
        public Yw.Dto.HydroSceneDto Dto { get; set; }
        [Display(Name = "Vmo")]
        public Yw.Vmo.HydroSceneVmo Vmo { get; set; }
    }
}