lixiaojun
2024-07-25 8b2f98400842e022aefd5f2f935ca62239a75228
WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/03-property/HomeXhsProjectPropertyCtrl.cs
@@ -14,8 +14,13 @@
            InitializeComponent();
            this.layoutControl1.SetupLayoutControl();
            SetDescriptionVisible(false);//默认设置属性描述面板不显示
            this.barBtnDirect.Visibility = BarItemVisibility.Never;
        }
        /// <summary>
        /// 跳转事件
        /// </summary>
        public event Action<XhsProjectStdDto> JumpDirectEvent;
        /// <summary>
        /// 绑定对象
@@ -38,11 +43,11 @@
        {
            if (this.SelectedObject == null)
            {
                this.barBtnDirect.Visibility = BarItemVisibility.Never;
            }
            else
            {
                this.barBtnDirect.Visibility = BarItemVisibility.Always;
            }
        }
@@ -239,7 +244,12 @@
        //跳转
        private void barBtnDirect_ItemClick(object sender, ItemClickEventArgs e)
        {
            XtraMessageBox.Show("正在开发中...");
            if (this.SelectedObject == null)
            {
                return;
            }
            JumpDirectEvent?.Invoke(this.SelectedObject.Project);
        }
    }
}