| | |
| | | InitializeComponent(); |
| | | this.layoutControl1.SetupLayoutControl(); |
| | | SetDescriptionVisible(false);//默认设置属性描述面板不显示 |
| | | this.barBtnDirect.Visibility = BarItemVisibility.Never; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 跳转事件 |
| | | /// </summary> |
| | | public event Action<XhsProjectStdDto> JumpDirectEvent; |
| | | |
| | | /// <summary> |
| | | /// 绑定对象 |
| | |
| | | { |
| | | if (this.SelectedObject == null) |
| | | { |
| | | |
| | | this.barBtnDirect.Visibility = BarItemVisibility.Never; |
| | | } |
| | | else |
| | | { |
| | | |
| | | this.barBtnDirect.Visibility = BarItemVisibility.Always; |
| | | } |
| | | } |
| | | |
| | |
| | | //跳转 |
| | | private void barBtnDirect_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | XtraMessageBox.Show("正在开发中..."); |
| | | if (this.SelectedObject == null) |
| | | { |
| | | return; |
| | | } |
| | | JumpDirectEvent?.Invoke(this.SelectedObject.Project); |
| | | |
| | | } |
| | | } |
| | | } |