| | |
| | | this.propertyGridControl1.OptionsView.AllowReadOnlyRowAppearance = DevExpress.Utils.DefaultBoolean.True; |
| | | this.propertyGridControl1.OptionsView.ShowFocusedFrame = false; |
| | | this.propertyGridControl1.OptionsView.ShowRootLevelIndent = false; |
| | | |
| | | this.propertyGridControl1.RecordWidth = 120; |
| | | this.propertyGridControl1.RowHeaderWidth = 100; |
| | | } |
| | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | public void SetBindingData(FacilityVmo facility) |
| | | public void SetBindingData(FacilityVmo facility) |
| | | { |
| | | FacilityPropertyViewModel vm = null; |
| | | if (facility!=null) |
| | | if (facility != null) |
| | | { |
| | | vm = new FacilityPropertyViewModel(facility); |
| | | } |
| | | |
| | | this.propertyGridControl1.SelectedObject= vm; |
| | | |
| | | this.propertyGridControl1.SelectedObject = vm; |
| | | } |
| | | |
| | | |
| | |
| | | return; |
| | | } |
| | | var descriptor = this.propertyGridControl1.GetPropertyDescriptor(e.Row); |
| | | var rowTypeFullName = e.Row.Properties.RowType.FullName; |
| | | |
| | | var rowTypeFullName = e.Row.Properties.RowType.FullName; |
| | | |
| | | #region bool |
| | | |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | //刷新 |
| | | private void barBtnRefresh_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |