lixiaojun
2024-11-30 8eb1a19c55846f70b3b6bf43e32c2e94333d52e7
WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/01-project/HomeXhsProjectTreeViewModel.cs
@@ -1,19 +1,20 @@
namespace HStation.WinFrmUI
{
    /// <summary>
    ///
    ///
    /// </summary>
    public class HomeXhsProjectTreeViewModel
    {
        /// <summary>
        ///
        ///
        /// </summary>
        public HomeXhsProjectTreeViewModel() { }
        public HomeXhsProjectTreeViewModel()
        { }
        /// <summary>
        ///
        ///
        /// </summary>
        public HomeXhsProjectTreeViewModel(XhsProjectStdDto rhs)
        public HomeXhsProjectTreeViewModel(XhsProjectVmo rhs, bool IsHave)
        {
            this.ID = rhs.ID;
            this.ParentID = rhs.ParentID;
@@ -21,6 +22,14 @@
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.Project = rhs;
            if (IsHave)
            {
                this.ImageIndex = ImageLib.NotImported;
            }
            else
            {
                this.ImageIndex = -1;
            }
        }
        /// <summary>
@@ -51,6 +60,11 @@
        /// <summary>
        /// 项目
        /// </summary>
        public XhsProjectStdDto Project { get; set; }
        public XhsProjectVmo Project { get; set; }
        /// <summary>
        /// 图标索引
        /// </summary>
        public int? ImageIndex { get; set; }
    }
}
}